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

sql: add test that triggers bug on channelmoves

Public commit record

What the developer wrote

Authored by Lagrang3

78/100 · Adequate
sql: add test that triggers bug on channelmoves

Updating channelmoves table makes sql to crash if there are more
elements in listchannelmoves than limit_per_list.

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit only adds a new test case that demonstrates a bug. The test is marked as expected to fail (xfail). It shows that running a SQL query on the 'channelmoves' table can crash a node if the number of channel movements exceeds an internal list limit. The actual crash-causing code is not fixed here, so this commit by itself does not resolve the issue.

Recommended action

Treat this as a bug report with a reproducer, not a security fix. Investigate the root cause in the SQL/listchannelmoves integration, add bounds checking or pagination, and run the new test to confirm the crash before and after a real fix. Consider whether an untrusted RPC user could trigger the crash via SQL queries.

Security signals we found

01

Denial-of-service vector: SQL query on channelmoves can crash a node

02

Test-only commit documenting a reproducible crash

03

No patch or mitigation present in this commit

Risk score

Why this scored 40/100

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