Vulnerability · Published Aug 20, 2024 · Assigned by GitHub_M

CVE-2024-41658GHSL-2024-036: Reflected XSS in QrCodePage.js

Medium 6.1

In plain English

A medium-severity cross-site scripting in casdoor from casdoor. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities).

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.4%top 60.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/casdoor/casdoorno fix listedGHSA-gv2p-4mvg-g32h
Gogithub.com/casdoor/casdoorno fix listedGO-2024-3086

Affected products (as reported)

VendorProductVersions
casdoor casdoor <= 1.577.0

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References