Skip to content

Weak Biometric ACL Flag

Description

The use of weak biometric ACL flags, such as '.biometryAny', '.userPresence', or '.touchIDAny', can allow an attacker with the ability to add a biometry to the device to authenticate as the user. It is recommended to use more specific and secure authentication mechanisms like '.biometryCurrentSet' and '.touchIDCurrentSet'.

Examples

Insecure Code

swift
SecAccessControlCreateWithFlags(.biometryAny)

Secure Code

swift
SecAccessControlCreateWithFlags(.biometryCurrentSet)

Remediation

Replace weak biometric ACL flags with more secure alternatives, such as '.biometryCurrentSet' and '.touchIDCurrentSet', to prevent authentication bypass attacks.

Rule Details

FieldValue
IDCODE-0630
CategoryAuth
SeverityCRITICAL
CWECWE-305
ConfidenceHIGH
ImpactHIGH
LikelihoodMEDIUM
ExploitabilityMODERATE
Tagsbiometric authentication, ACL flags
OWASPA2:2017-Broken Authentication, A07:2021-Identification and Authentication Failures