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

lnrpc: add include_log field to GetDebugInfoRequest

Public commit record

What the developer wrote

Authored by saubyk

73/100 · Adequate
lnrpc: add include_log field to GetDebugInfoRequest

Add an `include_log` bool field to GetDebugInfoRequest proto message.
When set to true, the server will include the log file content in the
response in addition to the configuration map.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit adds a new optional flag called include_log to the GetDebugInfo API request in LND. When set to true, the server will return the contents of its log file along with the existing configuration map. The change is purely a protobuf/API schema update; the actual server-side logic that reads and returns the log file is not visible in this diff. Because log files can contain sensitive information (connection details, errors, paths, or in rare cases accidentally logged secrets), adding an easy way to retrieve them over the API could increase the impact of any future RPC authentication weakness or misconfiguration. However, the commit itself does not introduce a vulnerability, and the default behavior remains unchanged (logs are not returned unless explicitly requested).

Recommended action

Review the corresponding server-side handler change (not included in this diff) to ensure that: (1) GetDebugInfo remains behind strong RPC authentication and authorization, (2) log file reading is bounded to prevent excessive memory use or denial of service, (3) log paths cannot be influenced by the request, and (4) no secrets are written to logs. Operators should treat GetDebugInfo responses as sensitive and avoid exposing the RPC interface to untrusted networks.

Security signals we found

01

New optional API flag that can cause the server to return log file contents

02

Log files may contain operational or sensitive node information

03

Default behavior is unchanged; explicit opt-in required

04

No server-side implementation visible in this commit; security impact depends on handler changes not shown

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.