Skip to content

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

Merged
AlfioEmanueleFresta merged 1 commit into
masterfrom
fix/getnextassertion-bounds
Jun 21, 2026
Merged

fix(webauthn): bound and validate getNextAssertion iteration#290
AlfioEmanueleFresta merged 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.

@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 20, 2026 14:10
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 force-pushed the fix/getnextassertion-bounds branch from 1183364 to 26a2919 Compare June 21, 2026 15:08
@AlfioEmanueleFresta AlfioEmanueleFresta merged commit 537aca1 into master Jun 21, 2026
3 checks passed
@AlfioEmanueleFresta AlfioEmanueleFresta deleted the fix/getnextassertion-bounds branch June 21, 2026 15:08
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