Community Hub membersJoin more than 6500+ Members
All security advisories
LowCVSS 3.1– Published

Missing CSRF protection in subscription management

GHSA-h2x3-h9qr-cf82

Affected versions

PackageAffected versionsFixed in
shopware/commercial>=7.0.0 <7.3.17.3.1
shopware/commercial6.10.76.10.7

Fixed by the Security Plugin

If you cannot update Shopware right away, the Shopware Security Plugin closes this issue from the listed version on.

Shopware versionSecurity Plugin version
6.5.x2.0.13 or newer
6.6.x3.0.9 or newer
6.7.x4.0.2 or newer

Description

Impact

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.

Description

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.

Applicability

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.

Reproduction

To reproduce this vulnerability, the steps below can be followed.

  1. Create an HTML-file containing the following text:
    <html>
    <body>
    <form action="https://pentest-saas-2025-2.shopware.store/account/subscription/0198ea636d2570c9934527df0289c2a0/pause">
    <input type="submit" value="Submit request" />
    </form>
    <script>
    history.pushState('', '', '/');
    document.forms[0].submit();
    </script>
    </body>
    </html>
  2. Log in to an account which has the subscription with id ‘0198ea636d2570c9934527df0289c2a0’
    activated.
  3. Open the created HTML-file in a browser.
  4. Navigate to the subscriptions overview.
  5. Notice that the subscription with id ‘0198ea636d2570c9934527df0289c2a0’ has been
    paused.
Pot. fix

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)