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

fix: first_install for local (#3927)

Public commit record

What the developer wrote

Authored by Arc

65/100 · Adequate
fix: first_install for local (#3927)
✓ 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 LNbits so that, by default, login cookies are no longer marked 'Secure' (which normally forces HTTPS). The change is intentional to keep fresh local HTTP installs working out of the box, but it means a default installation on plain HTTP will send session cookies over unencrypted connections. An attacker on the same network could potentially sniff or steal those cookies and impersonate the admin. The patch also adds tests confirming the new default behavior and that the secure flag is only added when an operator explicitly enables it.

Recommended action

Operators should explicitly set `auth_https_only=True` (and deploy HTTPS) for any production or remotely accessible instance. The project should consider emitting a startup warning when the setting is disabled, and the documentation should clearly state that the default is optimized for local development, not production.

Security signals we found

01

Default security control disabled: `auth_https_only` changed from `True` to `False`

02

Session cookie `Secure` flag removed by default

03

First-install admin setup now works over plain HTTP by default

04

Added regression tests codifying non-secure cookie behavior as default

Risk score

Why this scored 42/100

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