Lucene search

K
githubGitHub Advisory DatabaseGHSA-GP6M-FQ6H-CJCX
HistoryFeb 27, 2024 - 9:47 p.m.

Magento LTS vulnerable to stored XSS in admin file form

2024-02-2721:47:58
CWE-79
GitHub Advisory Database
github.com
41
openmage
stored cross-site scripting
low-privileged attacker
malicious scripts
cve-2024-20717
filename value
system configuration
paypal express checkout
api certificate
fileupload field
victim’s browser.

CVSS3

5.4

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

AI Score

5.4

Confidence

High

EPSS

0.001

Percentile

17.4%

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>.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 configurations

Vulners
Node
openmagemagentoRange<19.5.3lts
OR
openmagemagentoRange20.0.0–20.5.0lts
VendorProductVersionCPE
openmagemagento*cpe:2.3:a:openmage:magento:*:*:*:*:lts:*:*:*

CVSS3

5.4

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

AI Score

5.4

Confidence

High

EPSS

0.001

Percentile

17.4%

Related for GHSA-GP6M-FQ6H-CJCX