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

fix: Broken Access Control: Private form access and invoice creation on other stores via unscoped authorization check (#7236)

Public commit record

What the developer wrote

Authored by Cerberus

90/100 · Strong
fix: Broken Access Control: Private form access and invoice creation on other stores via unscoped authorization check (#7236)

Co-authored-by: Cerberus Merlin <merlin@cerberus.security>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
The short version

What changed, and why it matters

This commit fixes a broken access control bug in BTCPay Server's form feature. Previously, when checking whether a user could view a private form, the system asked 'Is this user allowed to view store settings anywhere?' without specifying which store. That meant any user with store-settings permission for any store could see private forms belonging to other stores, and could potentially create invoices against those stores. The patch changes the authorization check to include the specific store ID of the form, so users must have permission for that exact store.

Recommended action

Apply this patch and audit all other authorization calls site-wide for missing resource/store scoping. Review whether the invoice-creation path referenced in the commit title has a corresponding fix, since the diff only covers form viewing.

Security signals we found

01

Broken Access Control (CWE-284)

02

Missing authorization scope/resource parameter

03

Cross-store privilege escalation

04

Private data disclosure via unscoped permission check

Risk score

Why this scored 74/100

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