Описание
Sylius Mollie Plugin vulnerable to payment status forgery via the payment webhook
Impact
The shop payment webhook POST /{_locale}/update-payment (route
sylius_mollie_shop_payment_webhook) accepts two independent, attacker-controlled
parameters: id (the Mollie payment ID, verified against Mollie's API) and orderId (the
Sylius order ID, read directly from the database). The handler never verifies that the
Mollie payment belongs to the referenced order.
An unauthenticated attacker who holds any valid paid Mollie payment ID, for example
from a EUR 1 order they placed themselves, can submit it together with any victim
orderId. The victim's order payment is then transitioned to completed (or any other
Mollie-derived state) without any funds being transferred for that order. Sylius order IDs
are sequential integers, and the endpoint requires no authentication, CSRF token or rate
limiting, so the attack scales trivially across all pending orders.
Patches
Fixed in versions 2.2.8, 3.2.4 and 3.3.1. The webhook now binds the payment to
the order: it reads the Mollie payment ID stored server-side for that order when the payment
was created and compares it to the incoming Mollie payment ID. On mismatch the request is
acknowledged with HTTP 200 and no state change is applied. HTTP 200 is intentional,
because Mollie retries the webhook on any non-2xx response.
The stored ID lives in one of two places depending on the checkout flow, and the fix reads
both of them (mirroring CaptureAction):
payment.getDetails()['payment_mollie_id']for the standard Shop API and Apple Pay Direct flows, stored inCreatePaymentAction.order.getMolliePaymentId()for the QR-code flow, which stores the ID on the order itself (QrCodeAction).
Reading only the payment details would reject legitimate QR-code payments, because their
payment details carry no payment_mollie_id, so both sources must be consulted.
Workarounds
If you cannot upgrade immediately, patch the vulnerability at the project level by decorating the plugin's webhook controller. The decorator checks that the incoming Mollie id matches the id stored for that order before handing over to the original controller, so no plugin behaviour (state machine, logging) is lost and no extra Mollie API call is made. Works on both 2.2 and 3.x.
Step 1. Create the decorator
Create src/Controller/Mollie/SecurePaymentWebhookController.php in your Sylius project:
Step 2. Register the decorator
Append to your project's config/services.yaml:
decorates:keeps the original service ID, so the route_controller: sylius_mollie.controller.shop.payment_webhookkeeps working with no route changes.@.inneris the original plugin controller.
Step 3. Clear the cache
Ссылки
- https://github.com/Sylius/MolliePlugin/security/advisories/GHSA-rc52-c4hv-w89p
- https://nvd.nist.gov/vuln/detail/CVE-2026-68500
- https://github.com/Sylius/MolliePlugin/pull/351
- https://github.com/Sylius/MolliePlugin/pull/352
- https://github.com/Sylius/MolliePlugin/pull/354
- https://github.com/Sylius/MolliePlugin/commit/01316b3ad3cf82e3c5ad160115d0a2cf89174e49
- https://github.com/Sylius/MolliePlugin/commit/153c754486b1bc597b67a90ac07ef71cd7958267
- https://github.com/Sylius/MolliePlugin/commit/d1f7753e92106e8bf3bedcfc61b02ea7b8e1c38a
- https://github.com/Sylius/MolliePlugin/releases/tag/v2.2.8
- https://github.com/Sylius/MolliePlugin/releases/tag/v3.2.4
- https://github.com/Sylius/MolliePlugin/releases/tag/v3.3.1
Пакеты
sylius/mollie-plugin
< 2.2.8
2.2.8
sylius/mollie-plugin
>= 3.0.0, < 3.2.4
3.2.4
sylius/mollie-plugin
>= 3.3.0, < 3.3.1
3.3.1
Связанные уязвимости
Sylius Mollie Plugin provides Mollie payment integration for Sylius applications. Prior to 2.2.8, 3.2.4, and 3.3.1, Sylius Mollie Plugin's POST /{_locale}/update-payment payment webhook accepts attacker-controlled id and orderId parameters but does not verify that the Mollie payment belongs to the referenced Sylius order, allowing an unauthenticated attacker with any valid paid Mollie payment ID to mark a victim order as paid without transferring funds for that order. This issue is fixed in 2.2.8, 3.2.4, and 3.3.1.