GHSA-r2vg-hvjm-fg38 json
Shopware Customer Orders can be canceled, even if refunds are disabled
published last yr. modified 2mo ago
- cvss
- 4.3
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist shopware/platform 6.6.10.7, 6.7.3.1
- packagist shopware/core 6.6.10.7, 6.7.3.1
Is GHSA-r2vg-hvjm-fg38 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | shopware/platform | >=6.7.0.0, <6.7.3.1 <6.6.10.7 |
6.7.3.1 6.6.10.7 |
| packagist | shopware/core | >=6.7.0.0, <6.7.3.1 <6.6.10.7 |
6.7.3.1 6.6.10.7 |
Classification
- Weakness
-
- CWE-862 Missing Authorization
References
Sources
- GitHub Advisory GHSA-r2vg-hvjm-fg38
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.