| Package | Affected versions | Fixed in |
|---|---|---|
| shopware/commercial | >=7.0.0 <7.3.1 | 7.3.1 |
| shopware/commercial | 6.10.7 | 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 |
Malicious actors, capable of tricking a Shopware user into visiting a malicious webpage, can
exploit this vulnerability to activate, pause or cancel subscriptions belonging to the user.
The exploitation of this vulnerability does require knowledge of subscription-ID’s.
Cross-Site Request Forgery (CSRF) is an attack in which a malicious actor tricks users into
performing harmful actions on a web application they are logged into. Malicious actors use
social engineering to, for example, trick them into clicking a link or visiting a malicious CSRF
page.
The impact of this vulnerability depends on the privileges of the user exploited by the CSRF
attack. Examples of possible actions that can be performed via CSRF attacks include changing
user settings and leaking sensitive information.
The Shopware application is missing CSRF protection on the subscription management
functions within the store.
The Shopware application allows users to buy subscription products. These products are paid
periodically until the subscription is paused or cancelled. To manage this, requests are sent to
the following URLs:
• GET /account/subscription/<subscription_id>/pause
• GET /account/subscription/<subscription_id>/cancel
• GET /account/subscription/<subscription_id>/activate
During the pentest it was noticed that these endpoints are vulnerable to a CSRF attack due to
missing protection.
No user account is required to exploit this vulnerability.
To reproduce this vulnerability, the steps below can be followed.
We should not allow get requests to the pause, cancel & activate and only limit that to post, with same-site cookies that should prevent the issue (as the session cookie will not be included, however it is included in get requests)