base-org / webauthn-sol

MIT License
203 stars 74 forks source link

Fuzzing tests for assertion signatures verification #7

Closed xenoliss closed 6 months ago

xenoliss commented 6 months ago

The WebAuthn tests have been relocated to a dedicated folder in the test directory, and new fuzzing tests targeting the WebAuthn.verify method have been introduced. The test/fixtures/assertions_fixture.json file contains verification test cases generated using Python scripts (explained below) and is retained as an artifact for use by the fuzzing tests.

This PR introduces several Python scripts in test/helpers to facilitate the generation of new test cases:

There is still room for improvement in the following areas:

  1. Integration with other web drivers (e.g., Safari, Firefox) to generate a more diverse set of assertion responses.
  2. Enhancement of the assertion response generation to be more dynamic, possibly not enforcing user presence.
  3. Consideration of adding a test suite that dynamically starts the Python scripts on the fly, rather than generating test cases beforehand. This could contribute to a more comprehensive fuzzing campaign.
wilsoncusack commented 6 months ago

Will need to refactor now that code has changed :(

cb-heimdall commented 3 months ago

Review Error for 5twelve @ 2024-05-20 14:55:54 UTC User must have write permissions to review