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

bugfix: harden staged PSBT signing

Public commit record

What the developer wrote

Authored by scgbckbone

45/100 · Thin
bugfix: harden staged PSBT signing
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a bug in the COLDCARD hardware wallet's staged PSBT (Partially Signed Bitcoin Transaction) signing process. Previously, the wallet only re-checked the transaction hash if something was written to the lower 'input' staging region of its external memory. Writes to the upper 'output' staging region did not trigger a re-check, meaning a malicious or buggy process could potentially modify transaction data there without detection. The fix makes the write counter cover both regions, ensures oversized transaction files are rejected before staging, and updates the signing guard so that a write to the inactive region is treated as a new baseline rather than a false alarm. In short, it closes a gap where a transaction could be tampered with after user review but before signing.

Recommended action

Treat this as a security-relevant bugfix. Users should upgrade to firmware containing this commit. Developers should review any other paths that stage transaction data into PSRAM to ensure the write counter covers all mutable regions and that size limits are enforced before staging.

Security signals we found

01

fail-closed on transaction mutation

02

post-review tamper detection bypass possible before fix

03

staging memory write counter coverage gap

04

oversized transaction file rejection added

05

base64-encoded size estimate vs decoded size handling

06

PSBT signing integrity hardening

Risk score

Why this scored 68/100

Our methodology →
Potential impact 22/30
Exploitability 14/25
Stealth signal 10/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.