| Package | Affected versions | Fixed in |
|---|---|---|
| shopware/platform | >=6.7.0.0 <6.7.3.1 | 6.7.3.1 |
| shopware/platform | <6.6.10.7 | 6.6.10.7 |
| shopware/core | >=6.7.0.0 <6.7.3.1 | 6.7.3.1 |
| shopware/core | <6.6.10.7 | 6.6.10.7 |
If you cannot update Shopware right away, the Shopware Security Plugin closes this issue from the listed version on.
| Shopware version | Security Plugin version |
|---|---|
| 6.5.x | 2.0.13 or newer |
| 6.6.x | 3.0.9 or newer |
| 6.7.x | 4.0.2 or newer |
Refunds in general can be enabled through the administration setting core.cart.enableOrderRefunds (in the cart panel).Which visually shows and hides the button. However, using a custom crafted request, a customer can still cancel his own orders.As this is not checked inside the route (and also not in the controller):
https://github.com/shopware/shopware/blob/trunk/src/Storefront/Controller/AccountOrderController.php#L98
https://github.com/shopware/shopware/blob/trunk/src/Core/Checkout/Order/SalesChannel/CancelOrderRoute.php
To mitigate this, a check should be added to the CancelOrderRoute which verifies that the feature is enabled.