Meta Force Space
BTC $80,562.00 +0.08% ETH $2,333.30 -0.08% SOL $102.21 +1.00% XRP $1.30 +0.51% BNB $744.85 +0.66% DOGE $0.0780 +1.36%
← Back to the news

BTCPay’s API key fix is merged, but its latest release still predates the patch

Quick Take

  1. BTCPay merged a fix on October 19 to stop broad store-scoped keys from satisfying server or account permission checks.
  2. Server-wide access depends on administrator ownership and suitable grants, while key creation has separate endpoint requirements.
  3. As of October 26, version 2.4.5 remained the latest listed release and still contained the earlier permission checks.

BTCPay Server, software for accepting Bitcoin payments, merged a fix on Oct. 19 for a gap that could let API keys with broad permissions for one store reach server-wide or account-wide functions. For merchants sharing such credentials with an integration, the risk is delegating more authority than intended.

Nicolas Dorier merged PR #7684 into the project's master development branch. As of Oct. 26, BTCPay's release list still identifies version 2.4.5, dated Oct. 6, as its latest release.

How the permission boundary changes

BTCPay's authentication documentation describes API keys as integration credentials restricted by permission and store. Those are separate limits: what an application may do, and which store it may act on.

The added regression tests use keys with unrestricted permissions scoped to a single store: broad authority over actions, with a separate limit on where they apply. One asserts that an administrator-owned key must be denied access to server roles. Another asserts that an ordinary user's key must be denied deletion of that user's account.

These examples involve broad store-scoped grants. They do not establish that an invoice-only key can obtain administrator powers. Server-level access also depends on the owner's administrator role.

The authorization change narrows a fallback used when a request has no resolved scope: accepting a grant from any store is now allowed only for store permissions. That fallback no longer satisfies server-wide or account-wide checks. According to the PR description, existing unscoped administrator keys retain their behavior.

BTCPay API permission and store-scope comparison, key-creation prerequisites, and the October 6 release, October 19 merge and October 25 release-status check.

To prevent an authorized key-creation call from producing a more powerful credential, the patch also checks requested permissions against the caller's grants. An added test asserts rejection when an administrator's key limited to server-settings authority requests an unrestricted, unscoped key.

Key creation still has separate entry requirements. The self-service endpoint requires unrestricted authority without a store scope; the administrator's user-targeted endpoint requires server-settings modification authority. The controller change adds a check on what the caller may grant after those requirements are met.

The public PR does not report confirmed exploitation, affected merchants or losses.

Version 2.4.5's tagged authorization handler and key controller retain the earlier checks changed by this PR. The first affected version remains unclear.

BTCPay's documentation recommends requesting the narrowest useful permissions. Merchants can review delegated keys for broad grants and their owners' privileges, then narrow permissions to what each integration needs. The next concrete remediation milestone is a published release containing PR #7684, followed by confirmation that the deployed build includes it.

Editorial credits

Liam 'Akiba' Wright
Liam 'Akiba' Wright
Editor-in-Chief CryptoSlate

Also known as "Akiba," Liam Wright is a reporter, podcast producer, and Editor-in-Chief at CryptoSlate. He believes that decentralized technology has the potential to make…

Originally published by CryptoSlate on

Read the original on CryptoSlate ↗

Text and images are the property of CryptoSlate and are reproduced here with attribution and a link to the original publication.

More stories

All the latest news