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

fix ton wallet check and forget

Public commit record

What the developer wrote

Authored by willwang

45/100 · Thin
fix ton wallet check and forget
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes two related bugs in the Keystone 3 hardware wallet's handling of TON (The Open Network) mnemonic phrases. First, when a user tried to verify or recover a wallet in the settings screen, the device always ran a TON-specific check even if the wallet was a standard multi-coin (BIP39) wallet. Second, when a user forgot their password and tried to reset it with a recovery phrase, the device could misidentify a BIP39 phrase as a TON phrase and then erase the wrong wallet data. The patch adds logic to distinguish TON-only from BIP39/multi-coin wallets and to choose the correct recovery path and reset flow for each.

Recommended action

Treat this as a likely security-relevant bug fix. Review the full forget-password and recovery flows to confirm the new BIP39/TON branching covers all entry points, and verify that `g_isTonMnemonic` is always initialized correctly. Consider whether a firmware update or advisory is warranted because the bug could affect wallet recoverability.

Security signals we found

01

Incorrect wallet-type branch during recovery/verification could lead to wrong key derivation or user confusion

02

Password-forget reset path could erase or overwrite BIP39 wallet state when a TON-looking mnemonic was entered

03

Missing BIP39 public-key comparison in forget-password flow allowed TON-only reset to proceed incorrectly

04

UI state variable `g_isTonMnemonic` added to gate TON-specific reset behavior

Risk score

Why this scored 57/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/15
Confidence 6/10
Evidence quality 3/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.