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

fix: delete user with wallets (#3711)

Public commit record

What the developer wrote

Authored by Vlad Stan

65/100 · Adequate
fix: delete user with wallets (#3711)
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This commit changes how LNbits deletes user accounts. Previously, an admin could not delete a user who still had wallets. Now, deleting a user also deletes all of that user's wallets automatically. The change also centralizes cache cleanup when wallets are removed. There is no direct evidence in the commit that this fixes an active security vulnerability, but it removes a restriction that could have led to leftover wallet data or access credentials when accounts are removed.

Recommended action

Review whether wallet deletion correctly handles balances, payment records, and other foreign-key relationships before relying on cascade deletion. Verify that cache invalidation covers all wallet-related cache keys. Confirm that only authorized administrators can trigger user deletion, since the change expands destructive capability.

Security signals we found

01

Deletion of dependent resources now cascades automatically

02

Authentication cache entries are explicitly invalidated when wallets are deleted

03

Previously blocked admin operation is now permitted

04

No input validation or authorization changes visible in the diff

Risk score

Why this scored 28/100

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