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

Merge pull request #11122 from gijswijs/websocket-proxy-hardening

Public commit record

What the developer wrote

Authored by Yong

73/100 · Adequate
Merge pull request #11122 from gijswijs/websocket-proxy-hardening

lnrpc: websocket proxy hardening (protocol header panic, missing read limit)
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This update fixes two security-related bugs in LND's REST WebSocket proxy. First, a specially crafted WebSocket protocol header could crash the proxy (a panic). Second, the proxy previously had no limit on how large an incoming WebSocket message it would accept, which could let an attacker exhaust server memory. The patch caps incoming message sizes and correctly parses the protocol header as a comma-separated list.

Recommended action

Apply this patch promptly on any node exposing the REST WebSocket proxy to untrusted clients. The panic is remotely triggerable and the unbounded read could be used for denial of service. Review whether the REST proxy is exposed to the public internet and restrict access where possible.

Security signals we found

01

panic fix in request header parsing

02

unbounded incoming WebSocket message read now capped

03

incorrect header value assignment possible before fix

04

DoS/memory exhaustion vector removed

05

new unit tests specifically assert security-relevant behavior

Risk score

Why this scored 68/100

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