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

common: tighten restrictions on periods, as per latest draft.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
common: tighten restrictions on periods, as per latest draft.

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 change adds stricter validation rules when a Core Lightning node receives a BOLT12 offer that includes recurring payment terms. It now rejects offers with invalid time units, zero-length periods, zero recurrence limits, or recurrence-related fields that appear without an actual recurrence definition. This prevents the node from accepting malformed or contradictory offers that could lead to confusion, failed payments, or protocol edge-case abuse.

Recommended action

Review related BOLT12 invoice and request validation paths to ensure similar recurrence constraints are enforced consistently across the codebase. Consider adding regression tests for each rejected edge case.

Security signals we found

01

Input validation hardening for BOLT12 offer recurrence fields

02

Rejection of contradictory TLV field combinations

03

Prevention of zero-value period/limit that could cause loop or division-by-zero-like behavior

04

Alignment with latest BOLT-recurrence draft specification

Risk score

Why this scored 40/100

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