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

feat: FIRST_INSTALL_TOKEN to help services like Umbrel secure the first_install endpoint (#3751)

Public commit record

What the developer wrote

Authored by Arc

85/100 · Strong
feat: FIRST_INSTALL_TOKEN to help services like Umbrel secure the first_install endpoint (#3751)

Co-authored-by: dni ⚡ <office@dnilabs.com>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit adds an optional FIRST_INSTALL_TOKEN setting to LNbits. When configured, anyone trying to complete the initial superuser setup on the /first_install page must provide the correct token. Without the token, the setup request is rejected. This is a defensive hardening feature, not a vulnerability fix, aimed at platforms like Umbrel that expose LNbits during automated setup.

Recommended action

No immediate action required; this is a hardening feature. Operators deploying LNbits in automated or shared environments should set FIRST_INSTALL_TOKEN to a strong, unique value and keep it out of version control. Review whether the token is logged anywhere or exposed in frontend bundles.

Security signals we found

01

Adds optional token-based authorization to the first-install endpoint

02

Hardens initial superuser account creation against unauthorized access

03

Backwards-compatible: endpoint remains open when token is not configured

04

No rate limiting or brute-force protection added for token verification

Risk score

Why this scored 58/100

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