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

Offers with currency must set amount. (#3140)

Public commit record

What the developer wrote

Authored by Thomas HUET

78/100 · Adequate
Offers with currency must set amount. (#3140)

Adds check and corresponding test from lightning/bolts#1279
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit adds a missing validation rule for a type of Bitcoin Lightning payment request called a BOLT12 offer. Previously, Eclair would accept offers that named a fiat currency (like USD) but did not include an amount. That combination is invalid according to the Lightning specification, because a currency without an amount is meaningless. The fix rejects such malformed offers and adds a test case. The main risk is that an attacker could trick a node into accepting or acting on an ambiguous offer, potentially leading to incorrect pricing, payment routing confusion, or interoperability failures with other implementations.

Recommended action

Treat as a low-to-moderate security hardening patch. Review whether the invalid offer state could have been propagated to any payment, routing, or accounting logic before this fix, and consider backporting to maintained release branches. No immediate emergency response is indicated.

Security signals we found

01

Missing input validation on structured protocol message

02

Spec non-compliance in BOLT12 offer parsing

03

Potential for ambiguous payment request interpretation

04

Defensive hardening with added negative test vector

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.