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

Merge pull request #7599 from NicolasDorier/fix/invoice-list-store-permissions

Public commit record

What the developer wrote

Authored by Nicolas Dorier

73/100 · Adequate
Merge pull request #7599 from NicolasDorier/fix/invoice-list-store-permissions

Scope invoice list filters to the current store
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This change fixes a permission problem in BTCPay Server's invoice list. Previously, the invoice list page accepted a 'storeid:' search filter or a StoreId parameter that could let a user see invoices from stores they were not supposed to access. The patch forces the invoice list to always use the store ID from the URL route, ignoring any user-supplied store filter, so users can only view invoices for the store they are currently in.

Recommended action

Review whether any other invoice endpoints or reports still honor user-supplied store identifiers, and ensure the route-level store authorization is consistently applied across the invoice subsystem.

Security signals we found

01

Authorization boundary enforced by scoping query to route-supplied store ID

02

Removal of user-controlled StoreId from view model

03

Search filter 'storeid:' no longer expands the set of stores queried

04

Test added to verify cross-store invoice visibility is denied

Risk score

Why this scored 67/100

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