The Mollie payment gateway's server-to-server payment confirmation endpoint marks an order as paid based solely on whether a Mollie payment ID is "paid," without verifying that the payment actually belongs to that order or that its amount matches the order total. This allows a customer to mark an order as fully paid without paying its actual price.
processNotifyUrl() in src/Payments/Mollie.php (around lines 158-194) looks up the order by a URL hash and, independently, fetches a Mollie payment object using a client-supplied id request parameter:
$order = $this->createOrderModel()->whereHash($hash)->first();
$payment = $this->createClient()->payments->get(request()->input('id', ''));
if ($payment->isPaid()) {
$order->updateOrderStatus($paymentMethod->order_status, ...);
$order->markAsPaymentProcessed();
}
No check is performed that $payment's own order metadata references $order, and no check that $payment->amount matches $order->order_total. The notify route is intentionally unauthenticated (required for Mollie's servers to reach it) and CSRF-exempt (VerifyCsrfToken::except(['ti_payregister/*']) in src/Extension.php).
By contrast, in the same codebase, both Stripe::verifyPaymentIntentForOrder() (src/Payments/Stripe.php) and PaypalExpress::processReturnUrl() (src/Payments/PaypalExpress.php) correctly check both the order reference and the amount before marking an order paid.
id (visible from the checkout redirect / notify traffic for that order).id as the id parameter instead of a genuine payment for Order B.processNotifyUrl() fetches Order A's payment from Mollie (a real, valid, paid transaction, so isPaid() returns true) and marks Order B as paid, even though Order B's actual price was never charged.No per-payment-ID consumption tracking was found that would prevent the same paid payment ID from being reused across multiple orders' notify URLs.
Any customer who can place two orders through the normal storefront can get an order marked "paid" without paying its actual amount — direct, repeatable revenue loss for the merchant. No special privileges or hash-guessing are required.
{
"cwe_ids": [
"CWE-345"
],
"github_reviewed": true,
"github_reviewed_at": "2026-11-30T20:48:51Z",
"nvd_published_at": "2026-11-23T23:17:04Z",
"severity": "HIGH"
}