Skip to content
Mobile Write-up Intermediate

How a Biometric App Lock Was Reduced to a Single Callback $$$

The app's biometric lock trusted a callback without cryptographic verification, so an attacker could bypass it by invoking the success callback directly. This allowed access to protected data without any fingerprint or face scan.

medium.com

Published on medium.com

A fingerprint prompt appears. The operating system asks for authentication.

4bd0_m4g3d, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker who can instrument the app could bypass the biometric App Lock and access protected information without any legitimate biometric authentication.

What the attacker needed

Ability to instrument the app (e.g., Frida); App Lock feature enabled

The fix

The app should bind biometric authentication to a cryptographic operation using a CryptoObject so that a successful callback alone is not sufficient to unlock.

How it was found

  1. Enable the App Lock feature in the app's security settings.
  2. Use Frida to intercept the creation of the BiometricPrompt and capture its authentication callback.
  3. Hook the authenticate method so that when biometric authentication is requested, the captured success callback is invoked directly.
  4. Send the app to the background and reopen it; the biometric prompt appears and then disappears, unlocking the app without any biometric input.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A biometric lock is meant to check your fingerprint before letting you into an app. Here, the app only waited for a message saying 'authentication succeeded' but never checked that the message was genuine. An attacker could send that message themselves, so the lock opened without any fingerprint.

What is Mobile?

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.

Similar reports

View all

Same bug class and techniques, clearest first.

Mobile app vulnerabilities

The lesson behind this report.

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.