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

epee: prevent JSON parser log injection

Public commit record

What the developer wrote

Authored by selsta

45/100 · Thin
epee: prevent JSON parser log injection
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit removes user-controlled JSON content from error and log messages in Monero's epee networking/serialization library. Previously, when the JSON parser failed, it would copy parts of the raw request into log files or error strings. A malicious user could craft JSON containing fake log entries, terminal escape sequences, or misleading text, which might then be written to logs or shown to administrators. The fix replaces those messages with fixed, safe descriptions and escapes any exception text before logging it.

Recommended action

Treat as a low-to-moderate security hardening fix. Review whether transform_to_escape_sequence fully neutralizes relevant control characters, and confirm that upstream logging frameworks are not still vulnerable to injection elsewhere. No immediate emergency response is indicated, but backporting to maintained release branches is reasonable.

Security signals we found

01

Log injection via unsanitized attacker-controlled data in error/log messages

02

JSON parser error paths echoing raw input back into logs

03

Unknown JSON escape sequences previously logged and accepted instead of rejected

04

Exception messages logged without escaping

Risk score

Why this scored 51/100

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