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

pytest: test for malformed reply from first hop when using injectpaymentonion.

Public commit record

What the developer wrote

Authored by Rusty Russell

75/100 · Adequate
pytest: test for malformed reply from first hop when using injectpaymentonion.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit adds a new test case to Core Lightning's test suite. It checks how the software handles a malformed (corrupted) payment onion message when the first hop is the node that created the payment, using a developer-only RPC command called injectpaymentonion. The test is currently marked as expected to fail (xfail), meaning the behavior it checks is not yet working correctly. The commit itself does not fix any code; it only adds a test that documents a bug or missing behavior.

Recommended action

Treat this as a test-case addition documenting a known issue, not as a security patch. If reviewing for security, investigate whether the unfixed behavior in injectpaymentonion's malformed onion reply handling could affect production payment processing or error reporting. Wait for a follow-up commit that removes the xfail marker and fixes the underlying behavior before reassessing security relevance.

Security signals we found

01

Test-only change, no production code modified

02

Tests malformed onion handling for injectpaymentonion

03

Test marked xfail strict, indicating known unfixed behavior

04

Uses developer-only RPC and dev-fail-process-onionpacket option

05

No CVE, advisory, or vendor security disclosure present in materials

Risk score

Why this scored 28/100

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