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

fix: fiat wallet type (#4165)

Public commit record

What the developer wrote

Authored by Arc

65/100 · Adequate
fix: fiat wallet type (#4165)
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This commit introduces a new 'fiat wallet' type in LNbits, a Bitcoin Lightning wallet platform. It adds controls so fiat wallets can only receive money (not send it), restricts who can create them, and excludes their balances from total balance calculations. The changes are mostly defensive: they prevent fiat wallets from being used to spend funds they don't actually hold in Lightning. There is no clear evidence this fixes an active security breach, but it closes a design gap where a fiat-denominated wallet might otherwise be treated like a real Lightning wallet.

Recommended action

Review the new fiat wallet permission model in staging, ensure the LNBITS_ALLOW_FIAT_WALLETS default remains false unless explicitly enabled, and verify that fiat balances are consistently excluded from all Lightning accounting paths. Run the added tests/api/test_fiat_wallet_type.py and audit any extension or API that bypasses Wallet.has_permission.

Security signals we found

01

New wallet type with restricted permissions (receive-only)

02

Balance aggregation excludes fiat wallets to avoid inflating reported totals

03

Payment creation blocked for fiat wallets when amount is negative (spending)

04

Invoice creation restricted to internal/cash or fiat-provider payments for fiat wallets

05

Fiat provider availability checked per-user before creating fiat invoice

06

Wallet creation gated by server setting or user fiat provider access

Risk score

Why this scored 45/100

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