chamodanethra / biometric_signature

Flutter biometric functionality for cryptographic signing and encryption using the Secure Enclave and the StrongBox
https://pub.dev/packages/biometric_signature
MIT License
2 stars 5 forks source link

IOS Local Authentication able to be bypassed #10

Closed jianchao97 closed 3 months ago

jianchao97 commented 4 months ago

I have submitted my app for penetration test recently and one issue is reported by them that they are able to bypass local authentication for IOS.

https://github.com/user-attachments/assets/660f5a1a-8efe-4516-8bdb-bae80d843831

Frida Script: https://github.com/ivan-sincek/ios-penetration-testing-cheat-sheet/blob/main/scripts/ios-touch-id-bypass.js

References:

chamodanethra commented 4 months ago

@jianchao97, Thank you for reporting the issue regarding bypassing local authentication on iOS using Frida. I have identified the vulnerability and implemented a fix to ensure the security of the biometric authentication process. (This PR)[https://github.com/chamodanethra/biometric_signature/pull/11] includes a fix to prevent such bypass techniques. Also, appreciate your patience.

jianchao97 commented 3 months ago

@chamodanethra Thank you very much for your response!

chamodanethra commented 3 months ago

@jianchao97 Please let me know whether the plugin's latest version: 4.0.3 has indeed fixed the issue on real devices, if possible. On iOS simulators, calling createSignature() will no longer generate the signature, but instead output AUTH_FAILED error code.

jianchao97 commented 3 months ago

@chamodanethra Ok, I will resubmit for penetration test as well, will get back to you once get the result.

jianchao97 commented 3 months ago

@chamodanethra The issue is resolved on real devices and it has passed the penetration test. Thank you!

chamodanethra commented 3 months ago

@jianchao97, Awesome. thank you!