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

strip only the trailing extension when deriving the h2 database name

Public commit record

What the developer wrote

Authored by Craig Raw

50/100 · Thin
strip only the trailing extension when deriving the h2 database name
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a bug in how Sparrow Wallet names its internal H2 database files. Previously, the app stripped every occurrence of the wallet file extension from the full file path, not just the trailing one. That meant a wallet file named something like 'backup.mv.db2.mv.db' would accidentally write its database data to a different file ('backup2') instead of the file Sparrow was tracking. The fix removes only the final extension. The bug could cause wallet data to be written to or read from the wrong file, potentially leading to data loss, confusion, or cross-wallet contamination, though direct theft of funds is not evident from the change.

Recommended action

Treat this as a data-integrity bug with possible security side effects. Review whether any wallet could have been saved to or loaded from an unintended path, and consider warning users who created wallets with names containing the extension substring. No immediate remote exploit is visible, but users should upgrade to the fixed version to avoid data-loss or cross-wallet confusion.

Security signals we found

01

File path manipulation leading to wrong target file

02

Potential cross-wallet data contamination

03

Data integrity / data loss risk from mismatched tracked vs written file

04

JDBC URL injection pattern check already present, but extension stripping bypassed file targeting

Risk score

Why this scored 60/100

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