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

i2p: clean up SAM error logging

Public commit record

What the developer wrote

Authored by takeshikurosawaa

73/100 · Adequate
i2p: clean up SAM error logging

SESSION CREATE requests can contain the I2P private key. Keep using the redacted request text in error messages, and avoid echoing raw SAM replies in the generic reply error path.

This keeps the error useful while avoiding logging either the private-key-bearing request or unescaped router-controlled reply bytes. No network behavior change is intended.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
The short version

What changed, and why it matters

This commit tightens up error messages in Bitcoin Core's I2P (anonymous networking) code. Previously, error messages could accidentally include the full text of a SAM request that may carry the user's I2P private key, or the full raw reply from an I2P router. The patch keeps the error useful by still referencing the redacted request, but stops echoing the sensitive request body and unescaped router replies into logs. It is a defensive information-disclosure fix, not a change to network behavior.

Recommended action

Treat as a low-severity information-disclosure hardening patch. Review whether any other I2P or P2P error paths log raw request/reply contents, and ensure private key material is consistently redacted in logs. No urgent network upgrade is required, but node operators running I2P should update in due course.

Security signals we found

01

Sensitive data in error/log messages: SAM SESSION CREATE request may contain I2P private key

02

Unescaped external input in error/log messages: raw SAM reply bytes from router

03

Information disclosure via logging

04

Defensive hardening with no intended network behavior change

Risk score

Why this scored 35/100

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