Skip to content

Perform more type checking on credential.counter during auth - #836

Open
MasterKale wants to merge 2 commits into
masterfrom
fix/826-check-credential-counter-auth
Open

MasterKale wants to merge 2 commits into
masterfrom
fix/826-check-credential-counter-auth

Conversation

@MasterKale

Copy link
Copy Markdown
Owner

This PR adds more explicit type checking around credential.counter in verifyAuthenticationResponse() to avoid any issues related to odd number coercion quirks in JavaScript.

Fixes #826.

@MasterKale MasterKale added the package:server @simplewebauthn/server label Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package:server @simplewebauthn/server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

verifyAuthenticationResponse: the counter check passes silently when the stored counter cannot be read as a number

1 participant