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

Merge pull request #689 from Foundation-Devices/fix/psbt-witness-iter

Public commit record

What the developer wrote

Authored by mjg-foundation

73/100 · Adequate
Merge pull request #689 from Foundation-Devices/fix/psbt-witness-iter

SFT-8169: remove an unreachable branch in the PSBT witness iterator
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This firmware update tightens how Passport handles Bitcoin transaction files (PSBTs). It now rejects unsigned transactions that incorrectly include 'witness' data—extra proof data that belongs only in signed transactions. Before, such malformed files caused a confusing internal error instead of a clean user-facing rejection. The change also removes dead code that tried to preserve witness data that should never have been present. This is a defensive hardening fix: it prevents a malformed PSBT from reaching deeper transaction logic and gives the user a clearer error message.

Recommended action

Treat as a low-to-moderate hardening fix. Review whether any downstream code or user flows depended on the old had_witness behavior, and ensure the new FatalPSBTIssue is surfaced appropriately in the UI. No urgent incident response is indicated by the diff alone.

Security signals we found

01

Input validation hardening for PSBT unsigned transaction parsing

02

Replacement of internal ValueError with explicit FatalPSBTIssue for malformed witness data

03

Removal of unreachable/dead witness-preservation branch

04

Added unit test covering witness rejection and iterator correctness

Risk score

Why this scored 47/100

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