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

Merge pull request #653 from Foundation-Devices/show-op-return-output-amount

Public commit record

What the developer wrote

Authored by Jacksper13

58/100 · Thin
Merge pull request #653 from Foundation-Devices/show-op-return-output-amount

Show amounts for OP_RETURN outputs
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This update changes how the Passport hardware wallet displays Bitcoin transaction outputs that carry data (OP_RETURN outputs). Previously, only the embedded message was shown. Now the device also shows the amount of bitcoin assigned to that output and escapes the message text so a crafted message cannot fake extra user-interface labels (like a fake 'Amount' or 'Destination' section). The included tests demonstrate that an attacker who controls an OP_RETURN message can no longer make the screen look like a real payment destination is being sent funds.

Recommended action

Review the implementation of escape_text() to confirm it reliably neutralizes formatting characters used by the device's text renderer. Ensure the new unit test is run in CI and that all PSBT output types (not just OP_RETURN and standard addresses) are covered. Consider whether OP_RETURN outputs with non-zero amounts should trigger an additional warning, since burning funds to an unspendable output may itself be user-hostile.

Security signals we found

01

UI spoofing hardening: user-controlled OP_RETURN data is now escaped before rendering

02

New display of OP_RETURN output amount reduces risk of hidden value leakage

03

Unit test includes an attacker-controlled message simulating fake Amount/Destination headings

04

Test asserts raw malicious labels are absent and only one legitimate Amount/Message heading is rendered

Risk score

Why this scored 62/100

Our methodology →
Potential impact 18/30
Exploitability 12/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.