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

feat: keep funding source on default reset, force seed backup (#4040)

Public commit record

What the developer wrote

Authored by Arc

70/100 · Adequate
feat: keep funding source on default reset, force seed backup (#4040)

Co-authored-by: alan <alan@lnbits.com>
✓ Specific, 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 resets its admin settings to factory defaults. Previously, clicking 'restore defaults' would wipe all core settings except the super-user ID and web-push keys. After this change, it also preserves every configured funding-source setting (wallet connections to Lightning nodes/exchanges) and adds UI prompts that force the admin to confirm they have backed up the seed phrase for certain funding sources before saving. The change reduces the chance that an admin accidentally locks themselves out of their money by resetting settings, and it nudges admins to back up recovery phrases.

Recommended action

Treat as a hardening/usability improvement rather than a critical vulnerability. Review the new reset logic to ensure no sensitive fields are unintentionally preserved beyond funding sources, and verify that the backup-confirmation enforcement cannot be bypassed by sending API requests directly without the confirmed flag.

Security signals we found

01

Settings reset now preserves funding-source configuration, reducing availability/lockout risk

02

New mandatory seed-backup confirmation UI for mnemonic-based funding sources

03

Backend model fields added to track backup confirmation state

04

Test coverage added for reset behavior

Risk score

Why this scored 32/100

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