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

Fix API key View Usage crash with multi-store permission usage

Public commit record

What the developer wrote

Authored by tumutech

50/100 · Thin
Fix API key View Usage crash with multi-store permission usage
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a crash in BTCPay Server's admin page that shows how an API key has been used. The crash happened when the same permission (like 'view invoices') was used for more than one store. The fix also corrects how usage counts are stored and displayed so that store-specific permissions are counted separately instead of being lumped together or duplicated. There is no direct evidence this was a security vulnerability, but the bug could have caused misleading usage statistics for API keys.

Recommended action

Treat as a routine bug fix. Review whether any API-key usage reports shown to administrators were materially incorrect before the patch, but no immediate security response is indicated by the diff alone.

Security signals we found

01

Fixes a runtime crash in an administrative API-key usage view

02

Corrects aggregation of permission usage records that previously could duplicate or conflate store-scoped entries

03

Changes upsert to persist full permission string including scope, preventing legacy-style policy-only rows from overwriting each other

04

Adds defensive parsing and scope-aware matching in usage aggregation

Risk score

Why this scored 22/100

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