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

[feat] admin impersonate user (#3741)

Public commit record

What the developer wrote

Authored by Vlad Stan

53/100 · Thin
[feat] admin impersonate user (#3741)
✓ Descriptive subject✓ Names a concrete action or component✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This commit adds an 'admin impersonate user' feature to LNbits. It allows an administrator to log in as another non-admin user by providing that user's ID. The feature is gated behind admin checks and stores the admin's original token in a separate cookie so the admin can later stop impersonating and return to their own session. The change is a deliberate feature, not a hidden backdoor, but it does expand what an admin account can do and could be abused if an admin's session is compromised.

Recommended action

Treat this as a deliberate feature change with security implications. Review whether admin accounts have adequate protection (strong auth, MFA, session expiry, audit logging). Ensure the impersonation actions are logged in audit trails. Verify that the admin_access_token cookie is HttpOnly and Secure in production, and that stopping impersonation properly invalidates the target user's session. Consider whether non-super admins should be allowed to impersonate at all.

Security signals we found

01

New privileged authentication endpoint added

02

Admin-to-user impersonation capability introduced

03

Cookie token preservation mechanism added for session restoration

04

Guards against impersonating self and other admins

05

Frontend UI exposes impersonation controls to admin users

Risk score

Why this scored 63/100

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