Skip to main content
ExploitPublished

Casdoor 1.901.0 - Cross-Site Request Forgery (CSRF)

Source Exploit-DB RSS Feed

0
Severity
Medium

Rated by Threat Radar

Data as of 11 Jun 2025, 21:12 UTC

What to do

AI-suggested

  1. 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.
  2. 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.
  3. 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.
  4. Deploy Content Security Policy (CSP) headers to restrict the domains that can execute scripts or submit forms, limiting the attack surface for malicious payloads.
  5. Conduct user awareness training to reduce the likelihood of users visiting malicious links or phishing pages that could trigger CSRF attacks.
  6. 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.
  7. Implement server-side CSRF protections such as anti-CSRF tokens or verifying the Origin and Referer headers on sensitive endpoints.
  8. Monitor logs for unusual password change activities, especially for privileged accounts, and establish alerting mechanisms for suspicious behavior.
  9. 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 code for Casdoor 1.901.0 - Cross-Site Request Forgery (CSRF)1,378 characters
# 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…