Loading advisory.
Loading advisory.
Magento LTS vulnerable to stored XSS in admin file form
OpenMage is affected by a stored Cross-Site Scripting (XSS) vulnerability that could be abused by a low-privileged attacker to inject malicious scripts into vulnerable form fields.
Published 2024-02-27 21:47 UTC · Modified 2024-11-30 05:27 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| openmage/magento-lts | Packagist | >= 20.0.0, < 20.5.0 < 19.5.3 versions v20.0.0, v20.0.1, v20.0.10, v20.0.11, v20.0.12, v20.0.13, v20.0.14, v20.0.15, v20.0.16, v20.0.17, v20.0.18, v20.0.19, v20.0.2, v20.0.20, v20.0.3, v20.0.4, v20.0.5, v20.0.6, v20.0.7, v20.0.8 and 52 more | 20.5.0, 19.5.3 | composer require 'openmage/magento-lts:>=20.5.0'composer require 'openmage/magento-lts:>=19.5.3' |
OpenMage is affected by a stored Cross-Site Scripting (XSS) vulnerability that could be abused by a low-privileged attacker to inject malicious scripts into vulnerable form fields.
Mage_Adminhtml_Block_System_Config_Form_Field_File does not escape filename value in certain situations.
Same as: https://nvd.nist.gov/vuln/detail/CVE-2024-20717
Create empty file with this filename: <img src=x onerror=alert(1)>.crt
Go to System > Configuration > Sales | Payment Methonds.
Click Configure on PayPal Express Checkout.
Choose API Certificate from dropdown API Authentication Methods.
Choose the XSS-file and click Save Config.
Profit, alerts "1" -> XSS.
Reload, alerts "1" -> Stored XSS.
Affects admins that have access to any fileupload field in admin in core or custom implementations. Malicious JavaScript may be executed in a victim’s browser when they browse to the page containing the vulnerable field.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.