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

pytest: test for signing a signed PSBT.

Public commit record

What the developer wrote

Authored by Rusty Russell

70/100 · Adequate
pytest: test for signing a signed PSBT.

Spoiler: we crash!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit adds a test showing that Core Lightning crashes when asked to sign a PSBT (a Bitcoin transaction format) that has already been signed. The test is marked as expected to fail for now. It is a test-only change, not a fix, so the crash itself remains in the codebase. The crash appears to be triggered through a normal RPC call by an authenticated user.

Recommended action

Treat this as a bug report with security-relevant availability impact. Investigate the crash in the `signpsbt` implementation, add defensive handling for already-signed PSBTs, and remove the `xfail` marker once fixed. Consider whether the crash is exploitable by unauthenticated or low-privilege RPC callers.

Security signals we found

01

Crash on re-signing already-signed PSBT via RPC

02

Test-only commit documenting a known failure

03

Potential denial-of-service vector through `signpsbt` RPC

04

No input validation or idempotency handling for already-signed PSBTs

Risk score

Why this scored 43/100

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