Skip to content

fix(webauthn): bound and validate getNextAssertion iteration#290

Open
AlfioEmanueleFresta wants to merge 1 commit into
masterfrom
fix/getnextassertion-bounds
Open

fix(webauthn): bound and validate getNextAssertion iteration#290
AlfioEmanueleFresta wants to merge 1 commit into
masterfrom
fix/getnextassertion-bounds

Conversation

@AlfioEmanueleFresta

Copy link
Copy Markdown
Member

The multi-assertion loop trusted the device-reported credential count with no limit, so a misbehaving device could drive unbounded iteration. The loop is now bounded and each returned assertion is checked for consistency with the request. This hardens the client against a hostile authenticator.

Cap getNextAssertion iteration at the device's stated
maxCredentialCountInList so a hostile or buggy numberOfCredentials
cannot force an unbounded loop, and reject any assertion whose rpIdHash
does not match the requested RP ID.
@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 20, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant