MediumGHSA-mr9r-h354-966r
Sylius: IDOR on Shop Payment Request API endpoints
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 The `GET /api/v2/shop/payment-requests/{hash}` and `PUT /api/v2/shop/payment-requests/{hash}` endpoints look up the payment request solely by the hash from the URL. No ownership check is performed against the authenticated customer or the underlying order. An attacker who obtains a payment request hash can: - read the payment request and, through the `payment` IRI in the response, recover the underlying order's `tokenValue` (which itself grants access to the full order, items, addresses, customer email, totals); - update the payment request payload (e.g. `target_path`, `after_path
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