GHSA-gp6m-fq6h-cjcx

    Dashboard / Vulnerabilities / GHSA-gp6m-fq6h-cjcx

    GHSA-gp6m-fq6h-cjcx

    Published: 27 Feb 2024Last Modified: 30 Nov 2024

    Summary: Magento LTS vulnerable to stored XSS in admin file form

    Details: ### 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 1. Create empty file with this filename: `<img src=x onerror=alert(1)>.crt` 2. Go to _System_ > _Configuration_ > _Sales | Payment Methonds_. 3. Click **Configure** on _PayPal Express Checkout_. 4. Choose **API Certificate** from dropdown _API Authentication Methods_. 5. Choose the XSS-file and click **Save Config**. 6. Profit, alerts "1" -> XSS. 7. Reload, alerts "1" -> Stored XSS. ### 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.

    Affected packages

    Package

    Name: openmage/magento-lts

    Purl: pkg:composer/openmage/magento-lts

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 20.0.0
    Fixed -20.5.0

    Affected 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

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-gp6m-fq6h-cjcx | CVE-DB