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

Validate SeedQR payloads before word lookup

Public commit record

What the developer wrote

Authored by Jack

45/100 · Thin
Validate SeedQR payloads before word lookup
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit tightens how Passport firmware decodes SeedQR codes—QR codes that encode a wallet recovery phrase as numbers. Before the fix, the decoder would try to look up BIP-39 words using raw 4-digit indices before confirming the input was valid. The new code first checks that the payload length is a multiple of 4, that the number of words is a supported seed length, that every character is a digit, and that each index is within the valid BIP-39 word range. This prevents malformed or out-of-range SeedQR payloads from being partially processed or causing unexpected behavior during word lookup.

Recommended action

Treat this as a defensive hardening fix. Review whether any prior firmware version could be induced to accept a malformed SeedQR (e.g., via camera scan or imported image) and confirm the decoder returns None safely. Consider whether the broad try/except should log or surface specific failure modes for debugging without exposing sensitive data.

Security signals we found

01

Input validation added before cryptographic/word-list lookup

02

Out-of-range BIP-39 index now rejected explicitly

03

Non-digit and malformed-length SeedQR payloads now rejected

04

Unit tests added for both valid and invalid SeedQR decoding

Risk score

Why this scored 59/100

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