CVE-2022-24879

7.5 HIGH

📋 TL;DR

Shopware versions before 5.7.9 have a CSRF token validation flaw that allows attackers to bypass CSRF protection. This enables unauthorized actions to be performed on behalf of authenticated users. All Shopware 5 installations below version 5.7.9 are affected.

💻 Affected Systems

Products:
  • Shopware 5
Versions: All versions prior to 5.7.9
Operating Systems: All platforms running Shopware
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all Shopware 5 installations with default configuration. The vulnerability exists in the CSRF token generation and validation mechanism.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could perform administrative actions like changing user permissions, modifying orders, or altering store configuration without the victim's knowledge.

🟠

Likely Case

Attackers trick authenticated users into performing unintended actions like changing their own account details or making unauthorized purchases.

🟢

If Mitigated

With proper CSRF protection, all state-changing requests would require valid tokens, preventing unauthorized actions.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

CSRF attacks are well-understood and easy to weaponize. Exploitation requires the victim to be authenticated and visit a malicious page.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 5.7.9

Vendor Advisory: https://github.com/shopware/shopware/security/advisories/GHSA-pf38-v6qj-j23h

Restart Required: No

Instructions:

1. Backup your Shopware installation and database. 2. Update to Shopware 5.7.9 or later via the Shopware updater or manual installation. 3. Clear caches if necessary.

🔧 Temporary Workarounds

Install Shopware Security Plugin

all

Temporary mitigation using the official Shopware security plugin for older versions

🧯 If You Can't Patch

  • Implement additional CSRF protection at web application firewall level
  • Monitor for suspicious administrative actions and implement strict access controls

🔍 How to Verify

Check if Vulnerable:

Check Shopware version in administration panel or via composer show shopware/shopware

Check Version:

composer show shopware/shopware | grep version

Verify Fix Applied:

Confirm version is 5.7.9 or higher and test CSRF token generation for critical actions

📡 Detection & Monitoring

Log Indicators:

  • Multiple failed CSRF token validations
  • Unusual administrative actions from unexpected IPs

Network Indicators:

  • HTTP requests to administrative endpoints without proper referrer headers

SIEM Query:

source="shopware.log" AND ("CSRF token" OR "invalid token")

🔗 References

📤 Share & Export