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

feat: adds blockexplorer api, frontend via electrum (#4020)

Public commit record

What the developer wrote

Authored by dni ⚡

70/100 · Adequate
feat: adds blockexplorer api, frontend via electrum (#4020)

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 adds a new optional Bitcoin block explorer feature to LNbits. It introduces settings, backend services, REST API endpoints, WebSocket feeds, and frontend pages. The feature is disabled by default and can be restricted to authenticated users. The supplied diff does not show an obvious security vulnerability, but it is a large new surface area that touches authentication, external network calls, and WebSocket handling, so it warrants normal review rather than being treated as a confirmed security fix or flaw.

Recommended action

Treat as a routine feature addition requiring security review rather than an emergency patch. Review the full Electrum client implementation (lnbits/utils/electrum.py) for input validation, network timeouts, and SSL/TLS handling; verify that task_manager WebSocket queue registration cannot be abused for resource exhaustion or cross-user data leaks; confirm that the public API toggle and authentication checks are correctly wired in all routes; and run static analysis and targeted tests on the new endpoints before release.

Security signals we found

01

New optional feature disabled by default

02

Adds configurable external Electrum URL (SSRF potential if URL validation is weak)

03

Adds REST endpoints that accept user-supplied txid and on-chain address

04

Adds WebSocket endpoints with user-supplied address/txid parameters and queue registration

05

Public API toggle controlled by lnbits_blockexplorer_public_api setting

06

Authentication dependency check_user_exists/check_access_token used for non-public mode

07

Large diff (+2841/-42) with many frontend files, increasing review surface area

Risk score

Why this scored 27/100

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