CVE-2019-7857: Magento Cross-Site Request Forgery (CSRF)
Summary
CVE-2019-7857: Magento Cross-Site Request Forgery (CSRF). Affects magento/community-edition across 3 version ranges.
>= 2.1.0, < 2.1.18
>= 2.2.0, < 2.2.9
>= 2.3.0, < 2.3.2
Fixed in 2.1.18, 2.2.9 or 2.3.2, depending on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Magento is an open-source e-commerce platform used for building online stores. It provides various features for managing products, orders, and customer data. The vulnerability in question affects Magento versions 2.1 prior to 2.1.18, 2.2 prior to 2.2.9, and 2.3 prior to 2.3.2. This vulnerability allows for cross-site request forgery (CSRF) attacks, where unauthorized actions can be performed on behalf of a shopper due to a weak anti-CSRF token implementation.
Vulnerability Detail
The CSRF vulnerability in Magento allows attackers to trick shoppers into performing unintended actions on their behalf. By exploiting this vulnerability, an attacker can add unwanted items to a shopper's cart without their knowledge or consent. This can lead to financial loss, reputation damage, and a compromised shopping experience for the affected users. The vulnerability is rated as moderate severity with a CVSS score of 4.3.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
>= 2.1.0, < 2.1.182.1.18composer require magento/community-edition:2.1.18 -
>= 2.2.0, < 2.2.92.2.9composer require magento/community-edition:2.2.9 -
>= 2.3.0, < 2.3.22.3.2composer require magento/community-edition:2.3.2
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no specific workaround provided for this vulnerability. It is essential to apply the recommended fix by updating Magento to the latest version.
Conclusion
The CSRF vulnerability in Magento can lead to unauthorized actions being performed on behalf of shoppers, potentially causing financial loss and reputation damage. It is crucial to update Magento to the latest version to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for magento/community-edition →
FAQ
Magento is an open-source e-commerce platform used for building online stores. It provides various features for managing products, orders, and customer data.
Cross-site request forgery (CSRF) is an attack that tricks the victim into submitting a malicious request. In the context of this vulnerability, it allows unauthorized actions to be performed on behalf of a shopper.
The consequences of this vulnerability include unauthorized actions being performed on behalf of shoppers, such as adding unwanted items to their cart. This can lead to financial loss, reputation damage, and a compromised shopping experience.
The vulnerability is rated as moderate severity with a CVSS score of 4.3.
To fix this vulnerability, it is recommended to update Magento to the latest version available. Refer to the 'how_to_fix' section for specific version recommendations.
Related vulnerabilities
Recent vulnerabilities recorded for magento/community-edition.