Skip to content

fix(signed): reject malformed signature encodings in Verify - #73

Merged
rubenhensen merged 2 commits into
masterfrom
fix/issue-72-signed-verify-malformed
Jul 30, 2026
Merged

fix(signed): reject malformed signature encodings in Verify#73
rubenhensen merged 2 commits into
masterfrom
fix/issue-72-signed-verify-malformed

Conversation

@dobby-coder

@dobby-coder dobby-coder Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Closes #72

Hardens signed.Verify to reject malformed input with an error instead of aborting. Full details are withheld while the associated security advisory is still in draft.

Added regression tests cover malformed and valid inputs. Full suite (go test ./...) is green.

@dobby-coder
dobby-coder Bot requested a review from rubenhensen July 24, 2026 00:07

@dobby-coder dobby-coder Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

VERDICT: approve

Rules Dobby 2 sign-off — no blocking issues.

Review Dobby 2: 0 findings, full test suite green.

Rule check (input-validation hardening, Go): the change decodes into a fixed two-field struct so the encoder enforces an exact two-element SEQUENCE, guards trailing bytes, and returns an error on every malformed shape instead of aborting. Regression test covers empty input, garbage, empty/single/over-length SEQUENCE, and trailing bytes, plus the valid-signature happy path. Matches the prescribed safe pattern for this class of Go decoding bug.

Artifact sweep: title, body, commit messages, and branch name are appropriately generic — no advisory id or exploit detail leaked.

Sign-off complete, held in draft (embargo): the driving advisory is still in draft, so the PR stays a draft rather than being flipped ready. @rubenhensen is requested for review.

rubenhensen
rubenhensen previously approved these changes Jul 24, 2026
@rubenhensen
rubenhensen marked this pull request as ready for review July 24, 2026 14:30
@dobby-coder
dobby-coder Bot marked this pull request as draft July 24, 2026 23:04
@dobby-coder
dobby-coder Bot force-pushed the fix/issue-72-signed-verify-malformed branch from 2fc10fa to fe31260 Compare July 24, 2026 23:04
Harden signature verification so malformed input returns an error
instead of aborting. Full details are withheld while the associated
security advisory is still in draft. Adds regression tests covering
malformed and valid inputs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dobby-coder
dobby-coder Bot force-pushed the fix/issue-72-signed-verify-malformed branch from fe31260 to 6d92acb Compare July 28, 2026 23:05
@rubenhensen
rubenhensen marked this pull request as ready for review July 30, 2026 12:45
@rubenhensen
rubenhensen merged commit 4cfb3ef into master Jul 30, 2026
4 checks passed
@rubenhensen
rubenhensen deleted the fix/issue-72-signed-verify-malformed branch July 30, 2026 12:51
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.

Harden signature verification input validation

2 participants