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

keystore: Old_KeyStore: fix check_password(None) if ks has password

Public commit record

What the developer wrote

Authored by SomberNight

91/100 · Strong
keystore: Old_KeyStore: fix check_password(None) if ks has password

check_password(None) should raise InvalidPassword when called on a keystore that has a password.

regression from https://github.com/spesmilo/electrum/commit/f86bdc86a2f2cc78f12e072b1eb5ae06f40d2178

fixes https://github.com/spesmilo/electrum/issues/10142
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit fixes a bug in Electrum where an old-style wallet with a password would incorrectly accept a blank/empty password (None) as valid. The fix makes sure that if a wallet has a password, calling check_password(None) raises an InvalidPassword error instead of succeeding. This is a security-hardening fix for a regression introduced by an earlier change.

Recommended action

Apply the patch and run the new regression test. Review other keystore subclasses for similar password=None handling inconsistencies. Consider whether any UI or API callers rely on check_password(None) behavior for old-seed wallets and update them if needed.

Security signals we found

01

Fixes a regression where password validation could be bypassed for old-seed keystores

02

check_password(None) no longer succeeds on password-protected old-seed wallets

03

Adds regression test for password behavior on old-seed standard wallets

04

References issue #10142, indicating user-reported bug

Risk score

Why this scored 44/100

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