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

WebAuthn.sol: simplify contains to startsWith #41

Merged
merged 1 commit into from
May 19, 2024

Conversation

nalinbhardwaj
Copy link
Member

Assumes more strictly than before that signatures follow the WebAuthn spec serialization.

PR into next branch -- we can use that as our base until audit.

@nalinbhardwaj nalinbhardwaj requested a review from dcposch May 17, 2024 00:03
@nalinbhardwaj nalinbhardwaj force-pushed the nibnalin/webauthn-streamlining branch 2 times, most recently from f410102 to d115157 Compare May 17, 2024 00:22
@nalinbhardwaj nalinbhardwaj force-pushed the nibnalin/webauthn-streamlining branch from d115157 to 0599b98 Compare May 17, 2024 00:28
Copy link
Member

@dcposch dcposch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚡️

challengeB64url,
'"'
);

if (!contains(challengeProperty, clientDataJSON, challengeLocation)) {
if (!startsWith(prefix, clientDataJSON)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nalinbhardwaj nalinbhardwaj merged commit 76db52f into next May 19, 2024
5 checks passed
0xBigBoss pushed a commit to 0xBigBoss/p256-verifier that referenced this pull request Jul 11, 2024
0xBigBoss pushed a commit to 0xBigBoss/p256-verifier that referenced this pull request Jul 11, 2024
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.

2 participants