CVE-2024-41658: Casdoor - Reflected XSS
- Cve: CVE-2024-41658
- Name: Casdoor - Reflected XSS
- Description: Casdoor is a UI-first Identity and Access Management (IAM) / Single-Sign-On (SSO) platform. In Casdoor 1.577.0 and earlier, he purchase URL that is created to generate a WechatPay QR code is vulnerable to reflected XSS. When purchasing an item through casdoor, the product page allows you to pay via wechat pay. When using wechat pay, a QR code with the wechat pay link is displayed on the payment page, hosted on the domain of casdoor. This page takes a query parameter from the url successUrl, and redirects the user to that url after a successful purchase. Because the user has no reason to think that the payment page contains sensitive information, they may share it with other or can be social engineered into sending it to others. An attacker can then craft the casdoor link with a special url and send it back to the user, and once payment has gone though an XSS attack occurs.
- Impact: Attackers can execute arbitrary scripts in the context of the payment page, potentially stealing session tokens or performing malicious actions.
- Remediation: Implement proper input sanitization and validation for the successUrl parameter in the payment page.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to craft and send malicious link to the user
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00448
- Epss percentile: 0.39445
- Assignee: [email protected]
- Published at: 2024-08-20T21:15:13Z
- Age in days: 826
- Modified at: 2026-06-17T07:47:59Z
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-41658
- Nvd status: analyzed
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/ | nvd | 2024-08-20 |
References
| Url | Source | Tags |
|---|---|---|
| https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/ | nvd | Exploit, Third Party Advisory |
| https://github.com/casdoor/casdoor/blob/v1.577.0/web/src/QrCodePage.js | nvd | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| casbin:casdoor | all versions | no | nvd | /v1/products/casbin/casdoor |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| casdoor/casdoor | package | yes | /v1/repositories/casdoor/casdoor |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-08-20
- Remote: yes
- Exposed hosts: 2175
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports