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

pytest: test for parallel refresh.

Public commit record

What the developer wrote

Authored by Rusty Russell

78/100 · Adequate
pytest: test for parallel refresh.

If we do this, we get a database error (now we try to refresh
intelligently, is this is currently only chainmoves / channelmoves).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ 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 adds a test that demonstrates a bug: when the Core Lightning node's SQL interface is asked to refresh the same internal table from multiple requests at the same time, it can hit a database uniqueness error. The test is marked as expected to fail for now, so it documents the problem rather than fixing it. It appears to be a reliability issue in the SQL plugin's refresh logic rather than a security vulnerability that can be exploited by an attacker.

Recommended action

Treat as a bug report/test addition, not an immediate security patch. Developers should review the SQL plugin's refresh logic to make table refreshes atomic or idempotent under concurrent access. Users do not need to take urgent action unless the SQL RPC is exposed to untrusted callers, in which case the crash/DoS surface should be evaluated after a fix is available.

Security signals we found

01

Race condition in SQL table refresh (parallel query handling)

02

Database UNIQUE constraint failure under concurrent load

03

Test-only commit; no production code change

Risk score

Why this scored 33/100

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