-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication Fails When User Verification Is Set to Discouraged in webauthn.io #113
Comments
It requires a new silent format, so silent credentials must be reissued. Related with #113. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
In v6.4 I introduced silent authentication, which is used to identify credentials generated by a specific key. I fixed this message (3807e23) to identify correctly however it does not recognize the bogus signature. BTW, which is the use case where you need discouraged user verification in contrast to preferred or required? |
…re's current Uv in memory. It will force the prompt of a PIN. Fixes #113. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
I pushed a fix but your setup is not possible due to the specs. |
The initial setup during registration was incorrect, so it is necessary to register with a non-resident key. Also, it seems that PIN input is required once after restarting the board. Thank you. |
Description
Authentication may fail when the Authentication setting is set to User Verification = Discouraged in webauthn.io.
The issue appears to be caused by the PIN not being requested during the authentication ceremony, resulting in an inability to decrypt the master key.
Environment
Steps to reproduce:
Register a new credential with the following advanced settings:Attachment = Cross-Platform
→Register a new credential with the following advanced settings:
Attachment = Cross-Platform
Discoverable Credential = Discouraged
User Verification = Discouraged
Expected Behavior
WebAuthn authentication should succeed without requiring PIN input when User Verification = Discouraged.
Actual Behavior
WebAuthn authentication fails with the following error message:
"This security key doesn't look familiar. Please try a different one."
Additional Context
When User Verification is set to Discouraged, the PIN is not requested during authentication, leaving session_pin[32] empty. As a result, the load_mkek() function fails to decrypt the master key encryption key (MKEK).
If the FIDO2 USB key is reinserted and the PIN is manually specified using a command-line tool (e.g., picofido-tool.py -p xxxxxxxx memory), authentication will succeed even with User Verification = Discouraged.
The text was updated successfully, but these errors were encountered: