Bug 239807 - [WebAuthn] .get() with UV = "discouraged" and no allowList has "PIN Unrecognized" error on some security key
Summary: [WebAuthn] .get() with UV = "discouraged" and no allowList has "PIN Unrecogni...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari 15
Hardware: Mac (Intel) macOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-04-27 03:10 PDT by nuno.sung
Modified: 2022-05-04 03:10 PDT (History)
3 users (show)

See Also:


Attachments
.get() PIN unrecognized (25.37 MB, video/quicktime)
2022-04-27 03:10 PDT, nuno.sung
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description nuno.sung 2022-04-27 03:10:00 PDT
Created attachment 458436 [details]
.get() PIN unrecognized

[Environment]
macOS Big Sur 11.6.5
MacBook Pro(Retina, 13-inch, Mid 2014)
STP: Release-143(Safari 15.4, WebKit 16614.1.7.7)
Safari: 15.4 (16613.1.17.1.13, 16613)
[Repro Steps]

1. Use an external security key with option.alwaysUv=true like Yubikey Bio and only setup clientPIN (no fingerprint)
2. Use website for test"https://webauthntest.azurewebsites.net/".
3. Click "+" to create credential, Require Resident Key=true, Attestation=Direct and others are default undefined > Click "Create"
4. Follow the step on screen to finish registration(Safari ask for touch > PIN > touch) >> Reg should be fine
5. Repeat step3~4 to create 3 credentials with different user-Info
6. Click "Get credential", UV=discourage, Use allowCredentials=unchecked
7. Click "GET" and enter correct clientPIN

[Result]
1. "Unrecognized PIN code" error is showing
2. The dialog for selecting multi-credentials cannot be showed up as other .get() UV settings to Undefined/Prefered/Required and failed to get Credential.

[Note]
I guess this maybe relative the modification of https://bugs.webkit.org/show_bug.cgi?id=206547, other browsers like Chrome/Edge will send .get() command with pinUvAuthToken directly in this case.
Comment 1 Radar WebKit Bug Importer 2022-05-04 03:10:30 PDT
<rdar://problem/92722577>