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

offers: use param_check() for more thorough parameter validation.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
offers: use param_check() for more thorough parameter validation.

And fix incorrect comment on its use in the header!

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

What changed, and why it matters

This commit tightens parameter validation in the 'offers' plugin of Core Lightning. It swaps a less strict validation helper for a stricter one and ensures that when the command is only being checked (not actually executed), the plugin reports completion correctly. The change also fixes an outdated comment describing the stricter helper. There is no direct evidence in the commit of an exploitable security bug, but the change removes a validation gap that could in principle let malformed or incomplete offers slip through.

Recommended action

Review whether any other offer/invoice plugin commands still use param() where param_check() would be more appropriate, and ensure all check-only command paths terminate with command_check_done(). No urgent patch is indicated by this commit alone.

Security signals we found

01

Validation helper changed from param() to param_check() for stricter parameter checking

02

Missing explicit command_check_done() path added for check-only commands

03

Outdated header comment corrected to reflect actual param_check() contract

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.