Incorrect Access Control in the Fingerprint Authentication Mechanism of "ReserveAmerica Camping" App
Product introduction
Use ReserveAmerica app to search on a map of states, federally available campgrounds and RV sites, yurts, cabins galore, private parks, and car camping in the U.S. Search by location, date, or amenity and display search results. View campground details, reviews and photos. Even saving your search settings makes finding your next campground as easy as opening the app.
Affected version
4.17.2.0
Vulnerability description
The following vulnerabilities exist in the implementation of the fingerprint authentication function of this app.
- The cryptographic parameter in fingerprint authentication is not configured securely and correctly, resulting in fingerprint authentication that can be bypassed.
- This app uses a deprecated version of the API (FingerprintManager) to implement the fingerprint authentication function, which makes the fingerprint function susceptible to UI attacks.
- Failure to disable the fingerprint function when a new fingerprint is added to the device, allowing an attacker to pass fingerprint authentication by entering a new fingerprint, which can lead to unauthorized access.
- Failure to verify the user’s identity when disabling the fingerprint feature, allowing the integrity of the fingerprint protection to be compromised, which can cause fingerprint protection to fail.
Vulnerability recurrence (For the first item in the vulnerability description)
- Enable fingerprint unlock feature for the “ReserveAmerica Camping” app.
- Run frida-server on Android device.
- Inject the “fingerprint-bypass.js” script using Frida, hook the fingerprint authentication function “authenticate”, and spoof the authentication result. (Partial core code as shown below)
- Switch to the fingerprint unlock interface of “ReserveAmerica Camping”, and find that you can unlock without fingerprint authentication.
Improvement suggestion
- When using the fingerprint authentication API “authenticate”, safely set its cryptographic parameter to a pre-created key, and verify the validity of the key after users have verified their fingerprints, so as to ensure that the user is truly authenticated. (refer to ***https://developer.android.com/training/sign-in/biometric-auth*** )
- It is recommended to use the latest version of the fingerprint API (BiometricPrompt) for stronger security and protection. However, this API suffers from the problem of incompatibility with Android versions below 9. If you consider the compatibility issue, you can use the library “androidx.biometric” provided by Google.
- Disable fingerprint authentication when a new fingerprint is recognized on the device, prompt the user when he/she performs fingerprint authentication, and require the user to complete the authentication by other means. In terms of implementation, this can be done by using the “setInvalidatedByBiometricEnrollment” API of the key used in fingerprint authentication.
- Verify the user’s identity when turning off the fingerprint function, and allow the user to turn off the fingerprint function only if the verification is passed.