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

slight rework

Public commit record

What the developer wrote

Authored by Peter D. Gray

18/100 · Opaque
slight rework
✓ Subject identifies a change! Too few words to establish purpose! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a bug in the COLDCARD hardware wallet's handling of Bitcoin transaction files (PSBTs). Previously, the wallet only checked the most recent 50 inputs for duplicates, so a malicious transaction with more than 50 inputs could spend the same coin twice without being detected. The fix now checks up to 100 inputs and uses a more reliable data structure. This could have allowed an attacker to trick a user into signing a transaction that moves more money than it appears to.

Recommended action

Treat this as a security fix. Verify the new 100-entry limit is sufficient for all supported PSBT sizes, consider whether an unbounded set is feasible on the embedded device, and review related PSBT validation paths for similar windowing or resource-limit bugs. No CVE or vendor advisory was supplied.

Security signals we found

01

Fixes incomplete duplicate-input detection (sliding 50-entry window)

02

Changes prevout key ordering from (n, hash) to (hash, n), which is more conventional and less collision-prone

03

Raises FatalPSBTIssue on duplicate inputs

04

Test coverage expanded to 110 inputs to verify detection beyond old 50-entry limit

05

Removes test helper restriction that prevented duplicating the first input, enabling more realistic duplicate tests

Risk score

Why this scored 79/100

Our methodology →
Potential impact 25/30
Exploitability 20/25
Stealth signal 12/15
Affected reach 10/15
Confidence 8/10
Evidence quality 4/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.