Magento LTS vulnerable to stored XSS in admin file form
Moderate severity
GitHub Reviewed
Published
Feb 27, 2024
in
OpenMage/magento-lts
•
Updated Feb 27, 2024
Package
Affected versions
>= 20.0.0, < 20.5.0
< 19.5.3
Patched versions
20.5.0
19.5.3
Description
Published to the GitHub Advisory Database
Feb 27, 2024
Reviewed
Feb 27, 2024
Last updated
Feb 27, 2024
Summary
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.
Details
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
PoC
<img src=x onerror=alert(1)>.crt
Impact
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.
References