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

fix: reject user ID authentication for password accounts (#4340)

Public commit record

What the developer wrote

Authored by Vlad Stan

75/100 · Adequate
fix: reject user ID authentication for password accounts (#4340)
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes an authentication bypass in LNbits. Previously, an account that had been created without a password could still be logged into using only the user ID even after a password was later added. An attacker who knew (or guessed) the user's ID could access the account and wallets without needing the password. The patch now rejects user-ID-only login for any account that has a password set.

Recommended action

Deploy this patch promptly. Review any accounts that were upgraded from passwordless to password-protected and verify that no unauthorized access occurred via user-ID-only authentication before the patch. Consider disabling user-ID-only authentication unless it is strictly required.

Security signals we found

01

Authentication bypass via user ID for password-protected accounts

02

Stale authentication cache could grant access after password upgrade

03

New guard `check_passwordless_account` enforces password requirement

04

User-ID authentication cache key removed to force fresh account lookup

05

Tests explicitly model the bypass scenario and its fix

Risk score

Why this scored 81/100

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