Vulnerability DatabaseGHSA-w5v4-5p65-83xj

GHSA-w5v4-5p65-83xj: 
PHP vulnerability analysis and mitigation

Summary

The close REST endpoint of the BitPay Magento 2 plugin did not require authentication. With the default settings, anyone could delete any order in the store by sending its order number. Fixed in 10.2.3.

Details

GET /rest/V1/bitpay-bpcheckout/close is declared with the anonymous resource in etc/webapi.xml, so anyone can call it. Model/IpnManagement.php::postClose() loaded the order from the orderID parameter and deleted it when Invoice Close Handling was set to Delete Order, which is the default value in etc/config.xml. It did not check who sent the request, which payment method the order used, or whether the order was already paid.

Patches

Fixed in 10.2.3. The endpoint now requires the order's return hash, only works on BitPay orders, and only deletes orders that are still unpaid in Magento and in BitPay.

Workarounds

Until you can upgrade, go to Stores > Configuration > Sales > Payment Methods > BitPay and set Invoice Close Handling to Keep Order. With this setting the endpoint does not delete orders. If you cannot upgrade, set Invoice Close Handling to Keep Order. The close endpoint will then stop deleting orders.

Proof of concept

  1. Install the plugin (10.2.2 or earlier) with the default configuration.
  2. Place any order in the store and note its order number (increment ID).
  3. Without logging in, send a GET request to /rest/V1/bitpay-bpcheckout/close?orderID=<order number>.
  4. The order is deleted from the store, even if it was paid or used another payment method.

Impact

Missing authentication on a destructive action (CWE-306, CWE-639). Any Magento 2 store running the BitPay plugin up to 10.2.2 with the default Invoice Close Handling setting is affected. An unauthenticated attacker can delete orders, including paid orders and orders paid with other payment methods. Order numbers are sequential, so they are easy to guess. Stores lose order records and may not be able to fulfil paid orders.


Source: NVD

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-w5v4-5p65-83xjCRITICAL9.1
  • PHP logoPHP
  • bitpay/module-bpcheckout
NoYesOct 26, 2026
GHSA-vj26-42vf-4x4vHIGH8.1
  • PHP logoPHP
  • kyon147/laravel-shopify
NoYesOct 26, 2026
GHSA-9884-fw9c-mq85HIGH8.1
  • PHP logoPHP
  • nativephp/mobile
NoYesOct 25, 2026
GHSA-83jv-8h7x-287pHIGH7.7
  • PHP logoPHP
  • nativephp/mobile
NoYesOct 25, 2026
GHSA-9g37-88p8-75j2HIGH7.4
  • PHP logoPHP
  • nativephp/mobile
NoYesOct 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management