CVE-2024-41657
Casbin Casdoor vulnerability
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.
Affected products
Casdoor. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Casbin Casdoor runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/ · Exploit
- github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go#L45
- nvd.nist.gov/vuln/detail/CVE-2024-41657
- securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor
- github.com/advisories/GHSA-mchx-7j67-8mcf
- nvd.nist.gov/vuln/detail/CVE-2024-41657
- cve.org/CVERecord?id=CVE-2024-41657
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.