CVE-2024-41658 json
GHSL-2024-036: Reflected XSS in QrCodePage.js
published 2024-08-20 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-2586 , GHSA-gv2p-4mvg-g32h , GO-2024-3086
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
Summary
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.
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.45% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- securitylab.github.com https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/casdoor/casdoor | <=1.577.0 all versions |
no fix listed |
Affected products
- casdoor casdoor
- casbin casdoor
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
securitylab.github.com
/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/
exploit, third-party-advisory
-
github.com
/casdoor/casdoor/blob/v1.577.0/web/src/QrCodePage.js
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-41658
advisory
-
github.com
/casdoor/casdoor
package
-
securitylab.github.com
/advisories/GHSL-2024-035_GHSL-2024-036_casdoor
advisory
-
github.com
/advisories/GHSA-gv2p-4mvg-g32h
advisory
Sources
- CVE List CVE-2024-41658
- GitHub Advisory GHSA-gv2p-4mvg-g32h
- NVD CVE-2024-41658
- OSV GO-2024-3086
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.