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

[feat] User activation (#3749)

Public commit record

What the developer wrote

Authored by Vlad Stan

43/100 · Thin
[feat] User activation (#3749)
✓ Descriptive subject✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This commit adds a new 'user activation' feature to LNbits. It introduces an 'activated' flag on every user account, lets administrators deactivate or reactivate users, and blocks deactivated users from logging in or accessing wallets via API keys. The change is a security/administrative control rather than a fix for an active vulnerability, but it changes who can access the system and how authentication checks work.

Recommended action

Review the new activation logic for edge cases: ensure all authentication, session, and API-key paths respect the activated flag; verify that cache invalidation covers all cached tokens/ACLs; and confirm that deactivated users cannot still act through existing access tokens or WebSocket connections. Consider adding tests for deactivated users attempting wallet operations.

Security signals we found

01

New account lifecycle control (activation/deactivation) added

02

Authentication and API-key wallet lookups now enforce activated=true

03

New admin endpoint for toggling user activation with superuser/self-deactivation guards

04

Auth cache is cleared when a user is deactivated

05

Migration adds activated column with default true to preserve existing accounts

Risk score

Why this scored 46/100

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