CVE-2022-24879: Malfunction of CSRF token validation in Shopware
Impact The CSRF tokens were not renewed after login and logout. An attacker could impersonate the victim if the attacker is able to use the same device as the victim used beforehand.
Patches We recommend updating to the current version 5.7.9. You can get the update to 5.7.9 regularly via the Auto-Updater or directly via the download overview. https://www.shopware.com/en/changelog-sw5/#5-7-9
For older versions you can use the Security Plugin: https://store.shopware.com/en/swag575294366635f/shopware-security-plugin.html
References https://docs.shopware.com/en/shopware-5-en/security-updates/security-update-04-2022
Other sources
Malfunction of CSRF token validation in Shopware
— Packagist
Shopware is an open source e-commerce software platform. Versions prior to 5.7.9 are vulnerable to malfunction of cross-site request forgery (CSRF) token validation. Under certain circumstances, the CSRF tokens were not generated anew and not validated correctly. This issue is fixed in version 5.7.9. Users of older versions may attempt to mitigate the vulnerability by using the Shopware security plugin.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/shopware/shopwareto a version that resolves this vulnerability.Fixed in 5.7.9 - Upgrade
Upgrade
Shopwareto a version that resolves this vulnerability.Fixed in 5.7.9 - Compensating control
For Shopware versions older than 5.7.9, use the Shopware Security Plugin to mitigate the CSRF token validation vulnerability.
Event History
Frequently Asked Questions
What is the vulnerability ID of this Shopware vulnerability?
The vulnerability ID is CVE-2022-24879.
What is the severity of CVE-2022-24879?
The severity of CVE-2022-24879 is high with a CVSS score of 7.5.
How does CVE-2022-24879 affect Shopware?
CVE-2022-24879 affects Shopware versions prior to 5.7.9.
What is the impact of CVE-2022-24879?
The vulnerability allows for the malfunction of CSRF token validation, potentially leading to cross-site request forgery attacks.
How can I fix CVE-2022-24879?
The issue is fixed in version 5.7.9 of Shopware, so users should upgrade to this version to mitigate the vulnerability.