Incorrect clientDataJSON order to support limited verification order
Categories
(Core :: DOM: Web Authentication, defect, P3)
Tracking
()
People
(Reporter: thefissinator, Assigned: jschanck)
References
Details
Attachments
(2 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
Steps to reproduce:
When generating a clientDataJSON after calling navigator.credentials.get() using WebAuthn, the order of the clientDataJSON produced is challenge, origin, type
Expected results:
While not required by the specification, having it be in the mentioned order-type, challenge, origin-would allow compatibility with verifiers which use the Limited Verification Algorithm defined in 5.8.1.2 https://www.w3.org/TR/webauthn-3/#clientdatajson-verification. It would also align with other browsers that produce clientDataJSON objects in this format
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Updated•1 year ago
|
Comment 4•1 year ago
|
||
Hi, I don't see anywhere in the spec that the serialization algorithm is optional, it looks like it's mandatory to me https://www.w3.org/TR/webauthn-3/#clientdatajson-serialization
Also, I want to clarify that this is not just about reordering the fields, for instance the 'crossOrigin' attribute is mandatory and not always present today. Best to follow the steps laid out int the spec to guarantee compatibility
Comment 5•1 year ago
|
||
bugherder |
Assignee | ||
Comment 6•1 year ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D207322
Updated•1 year ago
|
Comment 7•1 year ago
|
||
beta Uplift Approval Request
- User impact if declined: WebAuthn operations may fail on some sites.
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: n/a
- Risk associated with taking this patch: low
- Explanation of risk level: The patch just changes the order of properties in a JSON object.
- String changes made/needed: none
- Is Android affected?: yes
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Description
•