Skip to content

Fix authentication bypass in type3 RateLimitedAttester.VerifyRequest - #69

Merged
thibmeu merged 1 commit into
mainfrom
cjpatton/verify-bug
Jun 1, 2026
Merged

Fix authentication bypass in type3 RateLimitedAttester.VerifyRequest#69
thibmeu merged 1 commit into
mainfrom
cjpatton/verify-bug

Conversation

@cjpatton

Copy link
Copy Markdown
Contributor

VerifyRequest mapped verification failures to the success sentinel by returning nil instead of the error. When innerVerifyRequest reported an invalid client signature, and when ecdsa.CreateKey failed, the function returned nil. Propagate the errors (return err) and add a negative test that feeds an invalid signature into VerifyRequest and asserts a non-nil error.

VerifyRequest mapped verification failures to the success sentinel by
returning nil instead of the error. When innerVerifyRequest reported an
invalid client signature, and when ecdsa.CreateKey failed, the function
returned nil. Propagate the errors (return err) and add a negative test
that feeds an invalid signature into VerifyRequest and asserts a non-nil
error.
@thibmeu
thibmeu self-requested a review June 1, 2026 14:55
@thibmeu thibmeu added the bug Something isn't working label Jun 1, 2026

@thibmeu thibmeu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good

one thing to note: given type3 never got standardised or added in privacy pass token registry, iot's technically not 0x0003. probably a not for myself down the liney

@thibmeu
thibmeu merged commit 7e6bbd0 into main Jun 1, 2026
5 checks passed
@thibmeu
thibmeu deleted the cjpatton/verify-bug branch June 1, 2026 14:56
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 this pull request may close these issues.

2 participants