CVE-2020-24408 Stored XSS in customer address upload feature
An unauthenticated attacker can inject malicious JavaScript via file uploads, leading to XSS attacks against other Magento users.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-24408?
CVE-2020-24408 is a medium-severity cross-site scripting vulnerability in Magento Magento, published on 16 Oct 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Magento versions 2.4.0 and 2.3.5p1 (and earlier) are affected by a persistent XSS vulnerability that allows users to upload malicious JavaScript via the file upload component. This vulnerability could be abused by an unauthenticated attacker to execute XSS attacks against other Magento users. This vulnerability requires a victim to browse to the uploaded file.
Weakness: CWE-79
Which versions are affected by CVE-2020-24408?
3 open source packages ship an affected version, including magento/community-edition and magento. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
magento/community-edition Packagist | All versions | 2.4.1 |
magento/community-edition Packagist | All versions | 2.4.1 |
magento Bitnami | All versions | 2.3.6, 2.4.1 |
Products include Magento Magento.
How do I fix CVE-2020-24408?
Upgrade magento/community-edition to 2.4.1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2020-24408 being exploited?
There is no known exploitation of CVE-2020-24408 in the wild and no public exploit code.
Other vulnerabilities in Magento Magento
Sources
Also known as BIT-magento-2020-24408, GHSA-jxjc-6xmh-h7mg.