AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 38 Bitcoin

limit BIP-322 msg length to 330 chars

Public commit record

What the developer wrote

Authored by scgbckbone

45/100 · Thin
limit BIP-322 msg length to 330 chars
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit adds a 330-character limit to BIP-322 proof-of-reserve messages on the COLDCARD hardware wallet. Without the limit, an attacker could craft a very long message that might be used to mislead the user, overflow display buffers, or cause other unexpected behavior during signing. The change rejects oversized or empty messages before the user is asked to sign.

Recommended action

No immediate action for users; ensure firmware is updated to a version containing this commit. Developers should verify that 330 bytes is sufficient for intended use cases and that the assertion is consistently enforced across all BIP-322 entry points.

Security signals we found

01

Input length bound added to user-facing signed message

02

Assertion failure prevents processing of oversized messages

03

Empty message already rejected; documentation now also requires non-empty message

04

New unit tests cover boundary values (330 allowed, 331 rejected, empty rejected)

Risk score

Why this scored 38/100

Our methodology →
Potential impact 8/30
Exploitability 7/25
Stealth signal 6/15
Affected reach 7/15
Confidence 7/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.