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

Fix device wipe on final PIN attempt (#380)

Public commit record

What the developer wrote

Authored by Schnuartz AI

53/100 · Thin
Fix device wipe on final PIN attempt (#380)
✓ 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 commit fixes a bug in the Specter DIY hardware wallet's PIN retry logic. Previously, on the 10th and final PIN attempt, the device would wipe itself before checking whether the entered PIN was actually correct. That meant a legitimate user who simply mistyped nine times and then entered the right PIN on the 10th try would still lose all wallet data. The fix checks the PIN first on the final attempt, wiping only if the final attempt is wrong, and also ensures a power cut cannot be exploited to gain an extra attempt.

Recommended action

Users running affected firmware should upgrade to a version containing this commit to avoid the risk of legitimate PINs wiping the device on the final attempt. Developers should review any custom keystore implementations for similar counter decrement/verify ordering bugs.

Security signals we found

01

PIN brute-force counter off-by-one causing premature wipe on correct final PIN

02

Power-cut rewind attack mitigated by persisting counter before PIN verification

03

Fail-closed behavior on reboot with exhausted or negative attempt counter

04

Local wipe failure no longer suppresses critical-wipe exception propagation

05

Security model documentation updated to describe corrected behavior

Risk score

Why this scored 60/100

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