feat(webauthn): scrub attestation for attestation=none conveyance#284
Merged
Merged
Conversation
WebAuthn L3 §5.4.1 requires the platform to anonymise the attestation object when the relying party requests attestation conveyance "none": replace fmt with "none", attStmt with an empty map, and zero the AAGUID in the authenticator data. libwebauthn parsed the conveyance preference but discarded it, forwarding the authenticator's real format, attStmt, and AAGUID verbatim. This honours the preference at response assembly time. The WebAuthn IDL default of "none" is applied at the IDL boundary, so JSON requests that omit attestation are scrubbed too. Requests built directly with attestation None pass through.
b9dc7d9 to
6db7939
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a relying party requests no attestation, the client now removes the attestation statement and zeroes the AAGUID before returning the credential, rather than forwarding the authenticator attestation verbatim. This honors the requested conveyance and avoids disclosing identifying device information for a privacy-preferring registration. Requests that ask for direct or indirect attestation are unchanged.