PIN always required for WebAuthn even when user verification is discouraged
Categories
(Core :: DOM: Web Authentication, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox114 | --- | verified |
People
(Reporter: will.smart, Assigned: jschanck)
References
Details
Attachments
(2 files)
Steps to reproduce:
- Insert a FIDO2 key that has a PIN configured
- visit https://webauthn.io/
- Enter a username
- Register a new credential with the following advanced settings:
User Verification = Discouraged
Discoverable Credential = Discouraged - Enter the FIDO2 key pin and complete the registration ceremony
- Authentication with the following advanced settings:
User Verification = Discouraged - Complete the authentication ceremony
This issue is reproducible with a new Firefox profile, and occurs on the latest Firefox Nightly.
Version 113.0a1
Build ID 20230314094139
Actual results:
Firefox prompts for a PIN, even though the credential is not discoverable and the relying party specified User Verification was Discouraged. (See attached screenshot)
This behavior may result in prompting for the PIN when it is not desired by the relying party.
Expected results:
In all other web browsers I've tested with WebAuthn/CTAP2 support (Chrome and Safari on MacOS, for example), when performing the steps to reproduce, the authentication ceremony only requires user presence, not PIN entry.
Reporter | ||
Comment 1•2 years ago
|
||
I am able to reproduce this issue with FIDO2 keys from different vendors including a Yubikey 5.
This may actually be the same issue as https://bugzilla.mozilla.org/show_bug.cgi?id=1811866, which I'm able to reproduce as well on the current nightly version of Firefox.
Comment 2•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Web Authentication' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Assignee | ||
Comment 3•2 years ago
|
||
Thanks for the report. We should be able to fix this in Firefox 113.
Assignee | ||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Comment 7•2 years ago
|
||
Backed out for causing build bustages in AndroidWebAuthnTokenManager.cpp.
- Backout link
- Push with failures
- Failure Log
- Failure line: /builds/worker/checkouts/gecko/dom/webauthn/AndroidWebAuthnTokenManager.cpp:159:19: error: no member named 'requireResidentKey' in 'mozilla::dom::WebAuthnAuthenticatorSelection'
Assignee | ||
Updated•2 years ago
|
Comment 8•2 years ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/dcb12f0cfb12
Comment 10•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Comment 11•2 years ago
•
|
||
Verified that at user authentication PIN is not required if UserVerification=Discharged on MAC 12.6 using Beta 114/Nightly 115 (tested with Feitian Fido device).
Updated•2 years ago
|
Description
•