MediumGHSA-6955-hrm5-c4qp
Sylius: Channel-based payment method restriction bypass on shop account orders API endpoint
Affected versions
2.0.0 to before 2.0.18, 2.1.0 to before 2.1.15, 2.2.0 to before 2.2.6 - fixed in 2.0.18Details
### Impact An authorization bypass vulnerability exists in the shop account API. The `PATCH /api/v2/shop/account/orders/{tokenValue}/payments/{paymentId}` endpoint, used by an authenticated shop customer to change the payment method of an order that has been placed but not yet paid (state `STATE_NEW`), does not validate that the chosen payment method is enabled for the order's channel. The equivalent checkout endpoint (`PATCH /api/v2/shop/orders/{tokenValue}/payments/{paymentId}`) correctly rejects out-of-channel payment methods with `HTTP 422`; the account endpoint silently accepts them and r
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected