BTCPay Fix Merged, but Latest Release Lacks Patch
BTCPay Server merged a fix on Oct. 19 for an API key permission gap, but version 2.4.5, the latest listed release on Oct. 26, predates the change.
BTCPay Server merged a fix on Oct. 19 for a permission gap that could allow an API key with broad access to one store to reach server-wide or account-wide functions. Nicolas Dorier merged pull request #7684 into the project’s master development branch.
Version 2.4.5, dated Oct. 6, remained the latest release listed by BTCPay on Oct. 26. The release predates the pull request, so the project had not confirmed the fix in a published version.
BTCPay API keys are credentials used by integrations. Their permissions determine what an application can do, while a store scope determines where it can operate. The new regression tests cover keys with unrestricted permissions limited to one store.
One test rejects an administrator-owned key when it attempts to access server roles. Another rejects an ordinary user’s key when it attempts to delete that user’s account. The tests concern broad store-scoped grants and do not establish that a key limited to invoice-related actions can gain administrator powers. Server-level access also depends on the key owner having an administrator role.
The patch changes a fallback used when a request has no resolved scope. Previously, a grant from any store could satisfy some permission checks. The new code permits that fallback only for store-level permissions, preventing a grant tied to one store from satisfying server-wide or account-wide checks. The pull request description says existing unscoped administrator keys retain their previous behavior.
The patch also checks the permissions requested when one API key is used to create another. A new test rejects an administrator’s request for an unrestricted, unscoped key when the administrator’s own key is limited to server-settings authority.
Key creation has separate entry requirements. The self-service endpoint requires unrestricted authority without a store scope. An administrator creating a key for another user must have permission to modify server settings. The controller change adds a check on the permissions the caller may grant after those requirements are met.
The public pull request does not report confirmed exploitation, affected merchants or financial losses. It also does not identify the first version affected by the permission issue. The authorization handler and key controller in version 2.4.5 retain the earlier checks changed by the pull request.
BTCPay’s documentation advises users to request only the permissions an integration needs. Merchants can review delegated keys, their store scopes and the privileges of their owners, then reduce grants that are not required.
The next published release containing pull request #7684 will provide the first release-level confirmation of the fix. Operators will then need to verify that their deployed build includes the change.








