Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to pass counter to verifyAuthenticatorAssertion #22

Open
P4sca1 opened this issue Nov 5, 2019 · 0 comments
Open

Allow to pass counter to verifyAuthenticatorAssertion #22

P4sca1 opened this issue Nov 5, 2019 · 0 comments

Comments

@P4sca1
Copy link

P4sca1 commented Nov 5, 2019

Authenticators SHOULD implement a signature counter feature.
The signature counter is incremented for each successful authenticatorGetAssertion operation by some positive value,
and its value is returned to the WebAuthn Relying Party within the authenticator data. The signature counter's purpose
is to aid Relying Parties in detecting cloned authenticators. Clone detection is more important for authenticators
with limited protection measures.
A Relying Party stores the signature counter of the most recent authenticatorGetAssertion operation.
Upon a new authenticatorGetAssertion operation, the Relying Party compares the stored signature counter value with
the new signCount value returned in the assertion’s authenticator data. If this new signCount value is less than or equal
to the stored value, a cloned authenticator may exist, or the authenticator may be malfunctioning.
Detecting a signature counter mismatch does not indicate whether the current operation was performed by a cloned authenticator
or the original authenticator. Relying Parties should address this situation appropriately relative to their individual
situations, i.e., their risk tolerance.

To accomplish this it would be great if we could supply our stored counter to the verifyAuthenticatorAssertion method which would then check whether the supplied counter is less than the counter on the authenticator.

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

No branches or pull requests

1 participant