Swift : Bad biometric authentication
Classification
Overview
The LocalAuthentication framework is used for a user authentication, which may not be sufficient for applications requiring heightened level of security control.
Touch ID and Face ID based authentication can be implemented in two different ways:
- Using the
LocalAuthenticationframework, - Using Touch ID based on access controls in the Keychain.
Despite the fact that both these methods are pretty secure for most applications, the LocalAuthentication approach has some specifications that make it less suitable for high severity applications (i.e. medical, banking and insurance apps):
LocalAuthenticationis defined out of the device’s Secure Enclave (it is a memory encryption coprocessor that performing all cryptographic operations for a control of data security protection keys), this could entail changes in APIs on jailbroken devices.LocalAuthenticationauthenticates the user by evaluating the context which may has onlytrueorfalsevalues. It means that the application will not be able to know who is really being authenticated. The application is simple defined was the fingerprint which was used for authentication registered on the device or not. In addition, all fingerprints that will be future registered on the device also will be evaluated astruevalue for an authentication.
DerScanner Severity Score
Check your Swift code for this vulnerability, free
Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.
Try it on your code, free
By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.
