github.com
https://github.com/shopware/shopware GHSA-R2VG-HVJM-FG38
Shopware Customer Orders can be canceled, even if refunds are disabled
Description
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.
Description source: GitHub Advisory
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
shopware/coreBrowse Packagist / shopware/core | GitHub Advisory | 6.7.0.0 to < 6.7.3.1 · Fixed in 6.7.3.1 | affected |
| Before 6.6.10.7 · Fixed in 6.6.10.7 | affected | ||
shopware/platformBrowse Packagist / shopware/platform | GitHub Advisory | 6.7.0.0 to < 6.7.3.1 · Fixed in 6.7.3.1 | affected |
| Before 6.6.10.7 · Fixed in 6.6.10.7 | affected |
References
3github.com
https://github.com/shopware/shopware/commit/b157508aef2c820e7ff89ebd5848d3019f22b592 github.com
https://github.com/shopware/shopware/security/advisories/GHSA-r2vg-hvjm-fg38