Skip to content

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

MediumCVSS 6.1 EPSS 0.45%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 0 fixed, 2 partially fixed.

PackageAffectedFixed inStatus
casbin casdoor <= 1.577.0; All versions after 1.577.0 Partially fixed
casdoor github.com/casdoor/casdoor(Go) <= 1.577.0; All versions after 1.577.0 Partially fixed
casdoor github.com/casdoor/casdoor = <= 1.577.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
casdoor github.com/casdoor/casdoor(Go) <= 1.577.0 No fix listed
casdoor github.com/casdoor/casdoor(Go) All versions No fix listed
casdoor github.com/casdoor/casdoor = <= 1.577.0 No fix listed
casbin casdoor <= 1.577.0 No fix listed
casbin casdoor All versions No fix listed

References