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

Ambigious behaviour with WebAuthn shim #369

Closed
remedcu opened this issue Apr 8, 2024 · 5 comments · Fixed by #474
Closed

Ambigious behaviour with WebAuthn shim #369

remedcu opened this issue Apr 8, 2024 · 5 comments · Fixed by #474
Assignees
Labels
bug Something isn't working

Comments

@remedcu
Copy link
Member

remedcu commented Apr 8, 2024

Description

The test "Should authorise and verify an existing credential" in the WebAuthn Shim section fails unexpectedly (Source)

Steps to reproduce

This fails rarely, as the next run of the job returns true.

Additional context

The problem was found during changes created in PR #356 (though no change in the concerned file was made).

@remedcu remedcu added the bug Something isn't working label Apr 8, 2024
@nlordell
Copy link
Collaborator

nlordell commented Apr 8, 2024

Uploading the log archive in case GitHub decides to delete the run.

logs_22525924257.zip

@nlordell nlordell self-assigned this Jul 8, 2024
@remedcu
Copy link
Member Author

remedcu commented Jul 18, 2024

Another failure, this time with the e2e CI script.

Log Link: https://github.com/safe-global/safe-modules/actions/runs/9990468990/job/27611219692
Log Archive:
logs_26151611198.zip

@nlordell
Copy link
Collaborator

I think that is an unrelated issue @remedcu, in fact the WebAuthn shim does not appear to be used in the failing test - it is just taking a little more gas than expected.

@nlordell
Copy link
Collaborator

I think I found the issue, and it lies in the SimpleWebAuthn library that we use: MasterKale/SimpleWebAuthn#594

@mmv08
Copy link
Member

mmv08 commented Jul 22, 2024

what a legend

nlordell added a commit that referenced this issue Jul 23, 2024
Fixes #369

This PR bumps the version of `@simplewebauthn/server` to include a fix
to which was causing flacky tests for our WebAuthn shim. It turns out
that the library was not correctly dealing with leading zeros in the
signature `r` or `s` value, which would cause the test to periodically
fail (since the signature was random in each run - as both the private
kay and the challenge were randomly generated).
nlordell added a commit that referenced this issue Jul 23, 2024
Fixes #369

This PR bumps the version of `@simplewebauthn/server` to include a fix
to which was causing flacky tests for our WebAuthn shim. It turns out
that the library was not correctly dealing with leading zeros in the
signature `r` or `s` value, which would cause the test to periodically
fail (since the signature was random in each run - as both the private
kay and the challenge were randomly generated).
nlordell added a commit that referenced this issue Jul 23, 2024
Fixes #369

This PR bumps the version of `@simplewebauthn/server` to include a fix
to which was causing flacky tests for our WebAuthn shim. It turns out
that the library was not correctly dealing with leading zeros in the
signature `r` or `s` value, which would cause the test to periodically
fail (since the signature was random in each run - as both the private
kay and the challenge were randomly generated).
nlordell added a commit that referenced this issue Jul 23, 2024
Fixes #369

This PR bumps the version of `@simplewebauthn/server` to include a fix
to which was causing flacky tests for our WebAuthn shim. It turns out
that the library was not correctly dealing with leading zeros in the
signature `r` or `s` value, which would cause the test to periodically
fail (since the signature was random in each run - as both the private
kay and the challenge were randomly generated).
nlordell added a commit that referenced this issue Jul 23, 2024
Fixes #369

This PR bumps the version of `@simplewebauthn/server` to include a fix
to which was causing flacky tests for our WebAuthn shim. It turns out
that the library was not correctly dealing with leading zeros in the
signature `r` or `s` values, which would cause the test to periodically
fail (since the signature was random in each run - as both the private
key and the challenge were randomly generated, meaning that we would
occasionally have an `r` or `s` value with a leading `0` byte).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants