ExploitPublished
Casdoor 1.901.0 - Cross-Site Request Forgery (CSRF)
Source Exploit-DB RSS Feed
0
Severity
MediumRated by Threat Radar
Data as of 11 Jun 2025, 21:12 UTC
What to do
AI-suggested
- Immediately upgrade Casdoor to a version that includes a fix for this CSRF vulnerability once available. Monitor the official Casdoor repository and security advisories for patches.
- Implement Web Application Firewall (WAF) rules to detect and block suspicious POST requests to /api/set-password that do not originate from legitimate sources or lack proper CSRF tokens.
- Enforce strict SameSite cookie attributes (e.g., SameSite=Strict or Lax) on authentication cookies to reduce the risk of CSRF attacks via cross-site requests.
- Deploy Content Security Policy (CSP) headers to restrict the domains that can execute scripts or submit forms, limiting the attack surface for malicious payloads.
- Conduct user awareness training to reduce the likelihood of users visiting malicious links or phishing pages that could trigger CSRF attacks.
- If immediate patching is not possible, consider temporarily disabling or restricting access to the /api/set-password endpoint or requiring additional authentication factors for password changes.
- Implement server-side CSRF protections such as anti-CSRF tokens or verifying the Origin and Referer headers on sensitive endpoints.
- Monitor logs for unusual password change activities, especially for privileged accounts, and establish alerting mechanisms for suspicious behavior.
- Review and harden overall identity and access management policies to limit the impact of compromised accounts, including enforcing multi-factor authentication (MFA) where possible.
Description
Casdoor 1.901.0 - Cross-Site Request Forgery (CSRF)
Indicators of compromise
Exploit source code
# Exploit Title: Casdoor 1.901.0 - Cross-Site Request Forgery (CSRF)
# Application: Casdoor
# Version: 1.901.0
# Date: 03/07/2024
# Exploit Author: Van Lam Nguyen
# Vendor Homepage: https://casdoor.org/
# Software Link: https://github.com/casdoor/casdoor/archive/refs/tags/v1.901.0.zip
# Tested on: Windows
# CVE : N/A
Overview
==================================================
Casdoor v1.901.0 and below was discovered to contain a Cross-Site Request Forgery (CSRF) in the endpoint /api/set-passw…References
Community reviews
Loading reviews…