The biometric result comes back successful, but the handle handed to the operation was created after the fact, not returned by the prompt. Success without authorization.
What goes wrong
There is a subtle difference between "the user authenticated" and "the user authorized this operation." A bound cryptographic handle is what carries the second meaning. It ties this specific success to this specific key use. Swap it out and you keep the reassuring success signal while losing what it was supposed to guarantee.
When the returned handle is null, this callback builds a replacement after authentication and passes it to the keyed operation. The replacement was never presented to the prompt, so the key it wraps was never gated by the user's biometric. You end up with a genuine authentication event attached to an operation it never covered. From the outside it looks airtight, which is what makes it easy to miss in review.
The pattern
function onAuthenticated(result) {
const handle = result.handle != null
? result.handle
: createCryptoHandle() // built after auth, unbound
doKeyedOperation(handle)
}function onAuthenticated(result) {
// use nothing the prompt did not hand back
if (result.handle == null)
return fail("prompt returned no bound handle")
doKeyedOperation(result.handle)
}Grounding and reachability were confirmed. The exploit-path gate would not conclude without the calling code, so the finding was held and an evidence request was raised instead of being reported as fact.
Why it matters to you
Compliance reviews and threat models both hinge on one claim: this sensitive operation required a fresh user authentication. If the operation can run on a handle the authentication never covered, that claim is false, and false in a way logs and metrics will not show you. Everything reports success.
Make the bound handle non-negotiable. If the platform did not return one, the user did not authorize the operation, and the only correct response is to stop.
Check your own code
- Verify keyed operations use exclusively the handle the biometric prompt returned.
- Reject any post-authentication creation of a crypto handle for a protected call.
- Configure keys so the operation itself requires a fresh authentication, backstopping the code.
- Assert that a null returned handle ends the flow with a failure.