In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Incorrect Authorization vulnerabilities in an interactive lesson.
Start learningUpgrade sylius/sylius to version 2.0.18, 2.1.15, 2.2.6 or higher.
sylius/sylius is a platform for PHP, based on Symfony framework.
Affected versions of this package are vulnerable to Incorrect Authorization in the PATCH /api/v2/shop/account/orders/{tokenValue}/payments/{paymentId} endpoint. An attacker can assign payment methods that are not enabled for the order's channel by sending crafted API requests as an authenticated user. This allows bypassing channel-based payment restrictions set by the store operator.
This vulnerability can be mitigated by decorating the Sylius\Bundle\ApiBundle\Changer\PaymentMethodChangerInterface service in the application to enforce channel checks before changing payment methods.