CVE-2023-34927: CVE-2023-34927: Casdoor v1.331.0 and below was discovered to contain a Cross-Site Request Forgery (CSRF) i…
casbin · casdoor · NVD published 2023-06-22 · posted 2024-04-02 · last modified 2026-06-17
What it is
Casdoor v1.331.0 and below was discovered to contain a Cross-Site Request Forgery (CSRF) in the endpoint /api/set-password. This vulnerability allows attackers to arbitrarily change the victim user's password via supplying a crafted URL.
| Weakness | CWE-352 |
|---|---|
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N (source: [email protected]) |
| ATT&CK tactics | Execution |
Exploitation evidence
First exploit evidence seen: 2024-04-02 (earliest date across the sources below).
Exploited in the wild
No source on this site lists in-the-wild exploitation yet (CISA KEV, VulnCheck KEV).
Public exploit code
Exploit-DB
- EDB-51961: Casdoor < v1.331.0 - '/api/set-password' CSRF (2024-04-02)
- EDB-52432: Casdoor 2.55.0 - Cross-Site Request Forgery (CSRF) (2025-09-16)
- EDB-52439: Casdoor 2.95.0 - Cross-Site Request Forgery (CSRF) (2025-10-29)
Sources: Exploit-DB (OffSec).
Defend the Chain
The attack chain for CVE-2023-34927 laid across the MITRE ATT&CK Enterprise tactics. Solid cards come from the MITRE CTID KEV mappings; dashed cards are inferred by CVERadar from the CWE or description. Correct defences are real ATT&CK mitigations for that technique.
Pick a red technique card on the board, then choose the defence that stops it.
Defend against T1204.001 Malicious Link Inferred
Inferred from CWE CWE-352
How to fix it
Fixed versions
- casbin casdoor: versions up to and including 1.331.0 are affected; check the vendor advisory for the fixed release.
Derived from the NVD CPE configuration (versionEndExcluding / versionEndIncluding). Always confirm with the vendor advisory.
Vendor advisories and patches
No vendor-tagged reference yet; see the full reference list.
MITRE ATT&CK mitigations for this chain
- M1031 Network Intrusion Prevention (for T1204.001) : If a link is being visited by a user, network intrusion prevention systems and systems designed to scan and remove malicious downloads can be used to block activity.
- M1017 User Training (for T1204.001) : Use user training as a way to bring awareness to common phishing and spearphishing techniques and how to raise suspicion for potentially malicious events.
- M1021 Restrict Web-Based Content (for T1204.001) : If a link is being visited by a user, block unknown or unused files in transit by default that should not be downloaded or by policy from suspicious sites as a best practice to prevent some vectors, such as .scr, .exe, .pif, .cpl, etc. Some download scanning devices can open and analyze compressed and encrypted formats
Detection Generic guidance
- Execution: Watch for the service process spawning shells or script interpreters (cmd.exe, powershell, sh, bash, python) via EDR process-tree rules.
Response checklist Generic guidance
- Inventory: find every instance of the affected product and version (include internet-facing and forgotten ones).
- Patch or mitigate per the vendor advisory; if you cannot patch, remove internet exposure or apply the vendor workaround.
- Assume compromise if the system was exposed before patching: hunt for the indicators in the advisory and review logs back to the disclosure date.
- Rotate credentials and secrets stored on or used by the affected system if compromise cannot be ruled out.
Sources
- NVD: CVE-2023-34927
- CVE.org record
- FIRST EPSS (2026-10-24)
- https://casdoor.org/ (Product)
- https://gist.github.com/omriman067/4e90a3a4ffa40984f011d8777a995469 (Third Party Advisory)
- https://github.com/casdoor/casdoor/issues/1531 (Exploit, Issue Tracking, Third Party Advisory)