HighGHSA-mchx-7j67-8mcfCVE-2024-41657GO-2024-3087

Casdoor CORS misconfiguration (GHSL-2024-035)

Published 22 Aug 2024 · Updated 30 Aug 2024

Is your project on an affected github.com/casdoor/casdoor?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<=1.557.0
Fixed in
No fix released

Details

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.

Is GHSA-mchx-7j67-8mcf in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/casdoor/casdoor, and gives you the command that fixes it.

More advisories for github.com/casdoor/casdoor

  • LowCVE-2026-6815Casdoor: Arbitrary file write possible through Local File System storage provider in github.com/casdoor/casdoor · 17 Jul 2026
  • LowCVE-2026-9094Casdoor: GetTokenExchangeToken bypass through lack of cross-organization JWT signature check in github.com/casdoor/casdoor · 17 Jul 2026
  • LowCVE-2026-9097Casdoor doesn't verify that a JWT used for token exchange is still active in github.com/casdoor/casdoor · 7 Jul 2026
  • LowCVE-2026-9093Casdoor does not validate the AudienceRestriction element in SAML assertions in github.com/casdoor/casdoor · 7 Jul 2026
  • LowCVE-2026-9090Casdoor has an authentication bypass in github.com/casdoor/casdoor · 7 Jul 2026
  • LowCVE-2026-9091Casdoor allows users to bypass configured MFA requirements in github.com/casdoor/casdoor · 7 Jul 2026
All 38 advisories for github.com/casdoor/casdoor

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.