CVE-2024-41658: Casdoor has reflected XSS in QrCodePage.js (GHSL-2024-036)
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.11148%
CWE
Published
8/22/2024
Updated
8/22/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/casdoor/casdoor | go | <= 1.577.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability occurs in QrCodePage.js where the successUrl parameter is directly taken from URLSearchParams and used in a redirect without validation. The setNotifyTask method periodically checks payment status and triggers a redirect using the user-controlled successUrl parameter. An attacker can craft a malicious successUrl with JavaScript code (e.g., javascript:alert(1)), which gets executed when the payment completes. This matches the reflected XSS pattern described in CWE-79 where untrusted input is used in client-side redirects without neutralization.