xxl-api, Cross-Site Request Forgery, CVE-2025-60645 (Critical)

Listen to this Post

The Cross-Site Request Forgery (CSRF) vulnerability in xxl-api v1.3.0 enables attackers to arbitrarily add users to the management module. This occurs via a crafted GET request that lacks anti-CSRF protections. When an authenticated administrator visits a malicious webpage, the embedded request automatically triggers. The server trusts the user’s active session and processes the request without validation. The crafted GET request targets the user addition endpoint, containing parameters like username, password, and role. Since GET requests are not designed for state-changing operations, they are prone to CSRF attacks. The attacker only needs to lure the victim to a site hosting the malicious code. The vulnerability stems from missing CSRF token verification and improper session handling. The endpoint does not check the request origin, allowing cross-site submissions. This can lead to unauthorized creation of users with administrative privileges. Attackers can gain persistent access by adding their own accounts. The impact is severe, potentially compromising the entire management system. The use of GET for sensitive actions exacerbates the risk. Mitigation requires implementing CSRF tokens and using POST requests. Developers should ensure all state-changing operations require unique tokens. Additional measures include same-site cookies and referer header validation. User awareness on avoiding suspicious links is also recommended. However, the primary solution is patching the application to include CSRF defenses. This CVE underscores common API security oversights in web applications.
Platform: xxl-api
Version: v1.3.0
Vulnerability: Cross-Site Request Forgery
Severity: Critical
Date: 11/12/2025

Prediction: Patch expected soon

What Undercode Say:

Analytics:

curl -X GET “http://target.com/api/user/add?username=attacker&password=pass&role=admin”

How Exploit:

Craft malicious page. Embed GET request. Victim visits authenticated.

Protection from this CVE:

Implement CSRF tokens. Use POST requests. Validate origins.

Impact:

Unauthorized user addition. Privilege escalation. System compromise.

🎯Let’s Practice Exploiting & Learn Patching For Free:

Sources:

Reported By: nvd.nist.gov
Extra Source Hub:
Undercode

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow DailyCVE & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin Featured Image

Scroll to Top