Skip to content

Update axon.py#3308

Open
Barbariandev wants to merge 1 commit intolatent-to:masterfrom
Barbariandev:master
Open

Update axon.py#3308
Barbariandev wants to merge 1 commit intolatent-to:masterfrom
Barbariandev:master

Conversation

@Barbariandev
Copy link
Copy Markdown

@Barbariandev Barbariandev commented Apr 9, 2026

Possible security vulnerability

  • I am acknowledging that I am opening this branch against staging

@basfroman
Copy link
Copy Markdown
Collaborator

Hi @Barbariandev, pls add more details to the PR description to explain why you consider this a potential security vulnerability.

@Barbariandev
Copy link
Copy Markdown
Author

default_verify accepted signature="" or signature=None and only rejected requests that had signatures that were not None and which were invalid. As I understand it this is not the intended behavior

@thewhaleking
Copy link
Copy Markdown
Contributor

Read CONTRIBUTING

@thewhaleking thewhaleking requested a review from a team April 14, 2026 10:21
Copy link
Copy Markdown
Collaborator

@basfroman basfroman left a comment

Choose a reason for hiding this comment

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

Hi @Barbariandev, thanks for catching this!
The fix itself is correct, and we’d like to merge it. However, there are a few things that need to be brought into compliance with the repository guidelines:

  • pls rebase your pr to staging
  • Please add tests to tests/unit_tests/test_axon.py. Minimum coverage:
    • request with signature=None -> raises Exception("Missing signature")
    • request with signature="" -> raises Exception("Missing signature")
    • request with an invalid signature -> raises Exception("Signature mismatch...")
    • request with a valid signature -> nonce is saved, no exceptions raised

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.

3 participants