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

Hide wallet creation option when permissions disabled

Public commit record

What the developer wrote

Authored by psam21

81/100 · Strong
Hide wallet creation option when permissions disabled

- Pass wallet creation permissions to SetupWallet view
- Conditionally render 'Create a new wallet' based on CanCreateHotWallet || CanCreateWalletWatchOnly
- Remove 'I have a wallet' and 'I don't have a wallet' section headings
- Always show 'Connect an existing wallet' option (import is always allowed)

Fixes #6991
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit fixes a UI bug where BTCPay Server was showing a 'Create a new wallet' button to users who did not have permission to create wallets. The button itself was just a link; the actual wallet creation endpoint still enforced permissions separately. So the fix is about hiding an option that shouldn't appear, not about blocking an unauthorized action. It is a defense-in-depth or user-experience security improvement rather than a critical vulnerability.

Recommended action

No urgent action required beyond applying the patch. If running an older version, verify that the GenerateWallet controller action still enforces CanCreateHotWallet / CanCreateWalletWatchOnly server-side, which this diff implies but does not modify. Consider reviewing related setup views for similar UI-only permission leaks.

Security signals we found

01

UI now respects server-side wallet creation permissions

02

Information disclosure / privilege confusion reduced by hiding unauthorized options

03

Server-side authorization on GenerateWallet endpoint already existed

04

Fixes GitHub issue #6991

Risk score

Why this scored 40/100

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