{"answers":{"affected":"4 open source packages ship an affected version, including openmage/magento-lts.","exploited":"There is no known exploitation of GHSA-gp6m-fq6h-cjcx in the wild and no public exploit code.","fix":"Upgrade openmage/magento-lts to a fixed version for your release line: 19.5.3 or 20.5.0.","what":"GHSA-gp6m-fq6h-cjcx is a cross-site scripting vulnerability in openmage/magento-lts, published on 27 Feb 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-gp6m-fq6h-cjcx and fix it if it is affected.\n\nWhat it is: GHSA-gp6m-fq6h-cjcx is a cross-site scripting vulnerability in openmage/magento-lts, published on 27 Feb 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-gp6m-fq6h-cjcx in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- openmage/magento-lts (Packagist): affected all versions; fixed in 19.5.3\n- openmage/magento-lts (Packagist): affected all versions; fixed in 19.5.3\n- openmage/magento-lts (Packagist): affected from 20.0.0; fixed in 20.5.0\n- openmage/magento-lts (Packagist): affected from 20.0.0; fixed in 20.5.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-gp6m-fq6h-cjcx/ (Markdown: https://insights.sbomify.com/GHSA-gp6m-fq6h-cjcx/index.md)","id":"GHSA-gp6m-fq6h-cjcx","markdown":"https://insights.sbomify.com/GHSA-gp6m-fq6h-cjcx/index.md","name":"GHSA-gp6m-fq6h-cjcx","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Magento LTS","requires_auth":"low_privilege","summary":"Low-privileged attackers can inject malicious scripts via file uploads in Magento admin, leading to XSS execution in victim browsers.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\nOpenMage 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.\n\n### Details\n`Mage_Adminhtml_Block_System_Config_Form_Field_File` does not escape filename value in certain situations.\nSame as: https://nvd.nist.gov/vuln/detail/CVE-2024-20717\n\n### PoC\n1. Create empty file with this filename: `\u003cimg src=x onerror=alert(1)\u003e.crt`\n2. Go to _System_ \u003e _Configuration_ \u003e _Sales | Payment Methonds_.\n3. Click **Configure** on _PayPal Express Checkout_.\n4. Choose **API Certificate** from dropdown _API Authentication Methods_.\n5. Choose the XSS-file and click **Save Config**.\n6. Profit, alerts \"1\" -\u003e XSS.\n7. Reload, alerts \"1\" -\u003e Stored XSS.\n\n### Impact\nAffects admins that have access to any fileupload field in admin in core or custom implementations.\nMalicious JavaScript may be executed in a victim’s browser when they browse to the page containing the vulnerable field.","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Magento LTS vulnerable to stored XSS in admin file form","id":"GHSA-gp6m-fq6h-cjcx","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["19.5.3"],"introduced":["0"],"last_affected":[],"package":"openmage/magento-lts","purl":null,"source":"GHSA-gp6m-fq6h-cjcx"},{"ecosystem":"Packagist","fixed":["19.5.3"],"introduced":["0"],"last_affected":[],"package":"openmage/magento-lts","purl":"pkg:composer/openmage/magento-lts","source":"GHSA-gp6m-fq6h-cjcx"},{"ecosystem":"Packagist","fixed":["20.5.0"],"introduced":["20.0.0"],"last_affected":[],"package":"openmage/magento-lts","purl":null,"source":"GHSA-gp6m-fq6h-cjcx"},{"ecosystem":"Packagist","fixed":["20.5.0"],"introduced":["20.0.0"],"last_affected":[],"package":"openmage/magento-lts","purl":"pkg:composer/openmage/magento-lts","source":"GHSA-gp6m-fq6h-cjcx"}],"products":null,"published":"2024-02-27","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Low-privileged attackers can inject malicious scripts via file uploads in Magento admin, leading to XSS execution in victim browsers.","url":"https://insights.sbomify.com/GHSA-gp6m-fq6h-cjcx/"}