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

lnworker: allow overwriting amount of sent payment info

Public commit record

What the developer wrote

Authored by f321x

73/100 · Adequate
lnworker: allow overwriting amount of sent payment info

Allows replacing a saved `PaymentInfo` of `SENT` direction if the old
one is not yet paid.
This allows the user to retry paying a 0 amount invoice with different
amount if the previous attempt failed.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit loosens the rules for saving Lightning payment details when a user is retrying a failed or unpaid outgoing payment. It allows the wallet to overwrite the payment amount and status for a previously saved sent payment, specifically so users can retry paying an invoice that has no fixed amount (a '0 amount invoice') with a different amount. There is no direct evidence in the commit that this fixes a security vulnerability; it appears to be a usability improvement for retrying payments.

Recommended action

Review as a normal functional/usability change. Verify that the status and amount overwrite cannot be triggered by an attacker through a malicious invoice or payment flow, and that the PR_UNPAID/PR_FAILED gating prevents unintended mutation of completed payments. No immediate security action is indicated by the diff alone.

Security signals we found

01

Logic change in payment state handling for Lightning Network sent payments

02

Relaxation of overwrite restrictions, but limited to PR_UNPAID/PR_FAILED statuses

03

No input validation, cryptographic, or authorization changes visible in diff

Risk score

Why this scored 29/100

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