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

bugfix: report staged firmware modification at upgrade approval

Public commit record

What the developer wrote

Authored by scgbckbone

73/100 · Adequate
bugfix: report staged firmware modification at upgrade approval

- FirmwareUpgradeRequest: fail with "Firmware modified" story instead of
bare assert when PSRAM write counter moved after staging
- main_pin_changer: assert no temporary wallet is active (menu already
hides the item; defense in depth)
- test_upgrades: assert tamper abort shows the failure message
- test_ccc: drop stale CCCFeature.last_fail_reason resets
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a bug in the COLDCARD firmware upgrade process. Previously, if someone tampered with the staged firmware after the user saw the approval prompt but before they confirmed, the device would crash with a bare internal error (assert). Now it cleanly aborts and tells the user 'Firmware modified'. The commit also adds a small extra safety check in the main PIN change flow to ensure no temporary wallet is active, and updates tests accordingly.

Recommended action

Treat as a security-hardening bugfix worth including in release notes. No immediate emergency response is indicated, but verify that the new 'Firmware modified' failure path is reachable and correctly displayed on real hardware during firmware upgrade approval.

Security signals we found

01

Tamper-detection failure path hardened: assert replaced with user-facing failure story

02

Defense-in-depth assertion added to PIN-changing flow

03

Test coverage added for tamper-abort message

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.