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

Merge pull request #642 from Foundation-Devices/SFT-7110-message-signing-display-mismatch

Public commit record

What the developer wrote

Authored by mjg-foundation

73/100 · Adequate
Merge pull request #642 from Foundation-Devices/SFT-7110-message-signing-display-mismatch

SFT-7110: message signing display mismatch
✓ 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 update fixes a display-mismatch bug when signing messages on the Passport hardware wallet. Before the fix, special characters in a message could change how the message looked on the device screen without changing the bytes that would actually be signed. That could trick a user into approving a different message than the one shown. The patch escapes display markup and blocks control characters so the screen now accurately reflects what will be signed.

Recommended action

Treat this as a security fix and include it in the next firmware release. Verify that escape_text() covers all markup tokens used by the device's text renderer, and extend the same escaping to any other user-controlled text shown before signing. Run the new unit tests in CI.

Security signals we found

01

UI markup injection / display spoofing in message signing

02

Control-character truncation/obfuscation before signing

03

Mismatch between displayed message and signed bytes

04

Addition of input validation (printable-ASCII enforcement)

05

Addition of output escaping before UI rendering

06

New regression tests covering display and validation behavior

Risk score

Why this scored 72/100

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