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

qeconfig: fix btc amount regex, add msat regex property, add regex tests

Public commit record

What the developer wrote

Authored by Sander van Grieken

60/100 · Adequate
qeconfig: fix btc amount regex, add msat regex property, add regex tests
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
The short version

What changed, and why it matters

This commit tightens a Bitcoin amount input validation regex used in Electrum's QML (mobile/desktop) GUI. The old regex lacked start (^) and end ($) anchors, meaning it could match invalid strings that merely contained a valid-looking number somewhere inside. The fix anchors the pattern and makes the decimal fraction optional. A new variant for milli-satoshi precision is also added, along with unit tests. The practical security impact is limited because the regex is only one layer of validation and likely used for UI feedback rather than final payment authorization.

Recommended action

Treat as a routine defensive fix. Review all QML callers of btcAmountRegex/btcAmountRegexMsat to confirm they do not rely solely on the regex for validation, and ensure downstream amount parsing still rejects malformed or out-of-range values. No urgent security response is indicated by the diff alone.

Security signals we found

01

Input validation regex lacked anchors (^/$), permitting partial-string matches

02

Regex change is in GUI code (QML) and affects amount entry fields

03

New unit tests explicitly assert rejection of over-long decimal inputs

04

No mention of CVE, security advisory, or bug bounty in commit metadata

Risk score

Why this scored 25/100

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