Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/vulndb: potential Go vuln in github.com/casdoor/casdoor: GHSA-mchx-7j67-8mcf #3087

Closed
GoVulnBot opened this issue Aug 22, 2024 · 1 comment
Labels

Comments

@GoVulnBot
Copy link

Advisory GHSA-mchx-7j67-8mcf references a vulnerability in the following Go modules:

Module
github.com/casdoor/casdoor

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.

References:

Cross references:

See doc/quickstart.md for instructions on how to triage this report.

id: GO-ID-PENDING
modules:
    - module: github.com/casdoor/casdoor
      vulnerable_at: 1.674.0
summary: Casdoor CORS misconfiguration (GHSL-2024-035) in github.com/casdoor/casdoor
cves:
    - CVE-2024-41657
ghsas:
    - GHSA-mchx-7j67-8mcf
references:
    - advisory: https://github.com/advisories/GHSA-mchx-7j67-8mcf
    - advisory: https://nvd.nist.gov/vuln/detail/CVE-2024-41657
    - web: https://github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go#L45
    - web: https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor
source:
    id: GHSA-mchx-7j67-8mcf
    created: 2024-08-22T18:01:13.387623328Z
review_status: UNREVIEWED

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/609141 mentions this issue: data/reports: add 21 unreviewed reports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants