OwnPay payment verification bypass in Alipay webhooks
own-pay OwnPay
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| own-pay OwnPay |
| No fix yet |
Original description
OwnPay is a self-hosted open-source payment gateway automation platform. In 0.2.0 and earlier, modules/gateways/alipay/AlipayGateway.php fails open when an Alipay callback lacks a signature or the merchant has no configured public key because verify(array $callbackData, array $credentials) falls back to an undefined mode credential that defaults to test mode, while verifyWebhook() returns true unconditionally. An unauthenticated request to POST /webhook/{gateway} can provide a pending order reference and matching amount, pass both verification gates without a valid payment signature, and cause the order and corresponding payment-received ledger entries to be marked completed. No fixed version is available as of this review.
From the CVE record · GitHub_M