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

lnwallet: prevent transaction pagination overflow

Public commit record

What the developer wrote

Authored by Ziggie

50/100 · Thin
lnwallet: prevent transaction pagination overflow
✓ Descriptive subject✓ Names a concrete action or component✓ Names security-relevant behavior explicitly! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a pagination bug in LND's wallet transaction listing. Previously, adding a user-controlled 'offset' and 'limit' together as 32-bit unsigned integers could wrap around to a tiny number, causing the code to slice transaction data using an unexpectedly small 'end' index and potentially return wrong results or behave inconsistently. The fix performs pagination using 64-bit arithmetic and compares the limit against the remaining items before deciding where to stop, preventing the overflow.

Recommended action

Review callers of ListTransactionDetails to ensure offset/limit are not attacker-controllable without authentication, and confirm the new helper is used consistently elsewhere if pagination logic is duplicated. No immediate emergency action is indicated beyond applying the patch.

Security signals we found

01

Integer overflow in pagination bounds calculation (uint32 addition)

02

Caller-controlled offset and limit values

03

Potential incorrect slicing of transaction detail slice

04

New unit tests explicitly exercise uint32 overflow boundary

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.