Skip to content

security: VerifyAuthFrame rejects wrong-length peer public keys (panic-DoS)#40

Merged
TeoSlayer merged 1 commit into
mainfrom
security/verifyauthframe-length-guard
Jul 25, 2026
Merged

security: VerifyAuthFrame rejects wrong-length peer public keys (panic-DoS)#40
TeoSlayer merged 1 commit into
mainfrom
security/verifyauthframe-length-guard

Conversation

@TeoSlayer

Copy link
Copy Markdown
Contributor

Companion to the crypto.Verify length guard (v0.5.9). VerifyAuthFrame bypassed crypto.Verify and called ed25519.Verify directly on peerEdPubKey, which panics on a key that is not exactly PublicKeySize bytes. That key comes from a registry lookup or caller-supplied HandshakeConfig, so a malformed record was a remote panic-DoS.

Adds the length guard plus fuzz coverage over the auth-frame and wire request decoders.

🤖 Generated with Claude Code

…c-DoS)

ed25519.Verify panics on a public key that is not exactly PublicKeySize
bytes; VerifyAuthFrame received peerEdPubKey from a registry lookup or a
caller-supplied HandshakeConfig and passed it straight to Verify. Adds a
length guard plus fuzz coverage over the auth-frame and wire request
decoders.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@TeoSlayer
TeoSlayer merged commit 90f4264 into main Jul 25, 2026
11 checks passed
@TeoSlayer
TeoSlayer deleted the security/verifyauthframe-length-guard branch July 25, 2026 14:33
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