CVE-2024-41657 GHSL-2024-035: Casdoor CORS misconfiguration
HighCVSS 8.8
EPSS 0.80%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
Description
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.
Upgrade path
3 packages: 0 fixed, 2 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| casbin casdoor | <= 1.577.0; All versions | after 1.577.0 | Partially fixed |
| casdoor github.com/casdoor/casdoor(Go) | <= 1.557.0; All versions | after 1.557.0 | Partially fixed |
| casdoor github.com/casdoor/casdoor | = <= 1.577.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| casdoor github.com/casdoor/casdoor(Go) | <= 1.557.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
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- https://github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go#L45 product
- https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/ exploit third-party-advisory vendor-advisory
- github.com vendor-advisory