Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/casdoor/casdoor
  4. ›
  5. CVE-2024-41657

CVE-2024-41657: Casdoor CORS misconfiguration (GHSL-2024-035)

August 22, 2024

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.

References

  • github.com/advisories/GHSA-mchx-7j67-8mcf
  • github.com/casdoor/casdoor
  • github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go
  • nvd.nist.gov/vuln/detail/CVE-2024-41657
  • securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor

Code Behaviors & Features

Detect and mitigate CVE-2024-41657 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.557.0

Solution

Unfortunately, there is no solution available yet.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-942: Permissive Cross-domain Policy with Untrusted Domains

Source file

go/github.com/casdoor/casdoor/CVE-2024-41657.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:10 +0000.