CVE-2024-41657: GHSL-2024-035_GHSL-2024-036: CORS misconfguration and Reflected XSS in Casdoor - CVE-2024-41657, CVE-2024-41658

Published Aug 14, 2024
·
Updated

Casdoor is a UI-first Identity and Access Management (IAM) / Single-Sign-On (SSO) platform. In Casdoor 1.577.0 and earlier, a logic vulnerability exists in the beego filter CorsFilter that allows any website to make cross domain requests to Casdoor as the logged in user. Due to the a logic error in checking only for a prefix when authenticating the Origin header, any domain can create a valid subdomain with a valid subdomain prefix (Ex: localhost.example.com), allowing the website to make requests to Casdoor as the current signed-in user.

Other sources

Casdoor is vulnerable to a CORS misconfiguration and a reflected Cross-Site Scripting (XSS) vulnerability, both of which may allow an attacker to take actions on behalf of the signed-in user.

GitHub Security Lab

Affected Software

2 affected components
go/github.com/casdoor/casdoor<=1.557.0
Casbin Casdoor

Event History

Aug 14, 2024
Advisory Published
via GitHub Security Lab·12:00 AM
Data Sourced
via GitHub Security Lab·12:00 AM
DescriptionAffected Software
Aug 20, 2024
CVE Published
via MITRE·08:11 PM
Data Sourced
via MITRE·08:11 PM
DescriptionSeverityWeakness
Aug 22, 2024
Advisory Published
via GitHub·05:16 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-41657?

CVE-2024-41657 has been assessed as a moderate severity vulnerability due to its potential for cross-domain request exploitation.

2

How do I fix CVE-2024-41657?

To fix CVE-2024-41657, upgrade Casdoor to version 1.577.1 or later where the logic vulnerability in the CorsFilter has been addressed.

3

What systems are affected by CVE-2024-41657?

CVE-2024-41657 affects Casdoor versions 1.577.0 and earlier.

4

What type of vulnerability is CVE-2024-41657?

CVE-2024-41657 is a logic vulnerability within the CorsFilter that allows unauthorized cross-domain requests.

5

Can CVE-2024-41657 lead to unauthorized access?

Yes, CVE-2024-41657 may allow attackers to make requests as an authenticated user, potentially leading to unauthorized access.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203