| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -237,7 +237,8 @@ begin | |
| webauthn_credential.verify( | ||
| session[:authentication_challenge], | ||
| public_key: stored_credential.public_key, | ||
| sign_count: stored_credential.sign_count | ||
| sign_count: stored_credential.sign_count, | ||
| user_verification: true, # needed for passwordless verification | ||
| ) | ||
|
|
||
| # Update the stored credential sign count with the value from `webauthn_credential.sign_count` | ||
| Expand Down Expand Up | @@ -384,11 +385,14 @@ Verifies the asserted WebAuthn credential is [valid](https://www.w3.org/TR/webau | |
| Mainly, that the client provided a valid cryptographic signature for the corresponding stored credential public | ||
| key, among other extra validations. | ||
|
|
||
| Note that the `user_verification: true` flag is required to ensure that the the authenticator has verified the user's identity before sending the credentials. See the following [CVE-2020-8236 writeup](https://hwsecurity.dev/2020/08/webauthn-pin-bypass/) | ||
|
|
||
| ```ruby | ||
| credential_with_assertion.verify( | ||
| session[:authentication_challenge], | ||
| public_key: stored_credential.public_key, | ||
| sign_count: stored_credential.sign_count | ||
| sign_count: stored_credential.sign_count, | ||
| user_verification: true # needed for passwordless verification | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityWe should also add this for PublicKeyCredentialWithAttestation#verify 🙂 Also, we could also add it to the params of this method in line 381.
Sorry, something went wrong.
All reactions
|
||
| ) | ||
| ``` | ||
|
|
||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI think we should also add this to creation options in the initiation phase of the Credential Registration ceremony 🙂
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.