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

bugfix: only list files with proper extension delimited by dot; fix UX showing suffixes in file_picker when no suitable files found

Public commit record

What the developer wrote

Authored by scgbckbone

50/100 · Thin
bugfix: only list files with proper extension delimited by dot; fix UX showing suffixes in file_picker when no suitable files found
✓ Specific, 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 file-picker bug in the COLDCARD hardware wallet firmware. Previously, callers passed file extensions without a leading dot (e.g., 'txt' or 'psbt'), so the picker would match any filename ending in those characters, not just proper dotted extensions. A file named 'backuptxt' could be treated as a .txt file, and 'backup7z' as a .7z backup. The patch forces every extension to start with a dot and updates all callers. The main risk is that a maliciously named file on the SD card could be offered to the user as if it were a valid PSBT, backup, text message, or other sensitive file type, potentially tricking the user into signing or restoring from the wrong data.

Recommended action

Treat this as a low-to-moderate security hardening fix. Ensure the patched firmware is included in the next release, and consider whether any downstream documentation or third-party integrations still pass undotted suffixes to file_picker. No immediate incident response is required unless users were already tricked by crafted filenames.

Security signals we found

01

File-extension filter bypass due to missing leading dot in suffix matching

02

Potential UI confusion / social-engineering via maliciously named SD-card files

03

Regression test added to prevent reintroduction of the bypass

04

Assertion added to enforce dotted-extension invariant in file_picker

Risk score

Why this scored 40/100

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