{"schemaVersion":3,"id":"CVE-2024-41657","aliases":["GHSA-mchx-7j67-8mcf","GO-2024-3087"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-08-20T20:11:29.788Z","modified":"2024-08-20T20:54:45.045Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":8.6,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":7.2,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00794,"percentile":0.55623,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.0009999999999999593,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00793},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00794,"percentile":0.55623}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00793,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00794,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00794,"percentile":0.55623}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_ADVISORIES_GHSL-2024-035_GHSL-2024-036_CASDOOR","name":"Ghsl 2024 035 Ghsl 2024 036 Casdoor","source":"github","url":"https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-942","name":"Permissive Cross-domain Security Policy with Untrusted Domains","description":"The product uses a web-client protection\n         mechanism such as a Content Security Policy (CSP) or\n         cross-domain policy file, but the policy includes untrusted\n         domains with which the web client is allowed to\n         communicate.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/942.html"},{"id":"CWE-697","name":"Incorrect Comparison","description":"The product compares two entities in a security-relevant context, but the comparison is incorrect.","type":"weakness","status":"Incomplete","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/697.html"}],"affected":[{"vendor":"casdoor","product":"casdoor","name":"Casdoor","label":"casdoor","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.577.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.577.0","eol":null,"hubHref":"/vendor/casdoor/casdoor"},{"vendor":"github.com/casdoor","product":"casdoor","name":"github.com/casdoor/casdoor","label":"casdoor","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/casdoor/casdoor","purlType":"golang","versions":[{"text":"≤ 1.557.0","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"≤ 1.557.0 | All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/","label":"securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/","hostname":"securitylab.github.com","tags":["X Refsource CONFIRM","Exploit","Third Party Advisory"]},{"url":"https://github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go#L45","label":"github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go","hostname":"github.com","tags":["X Refsource MISC","WEB","Product"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41657","label":"nvd.nist.gov/vuln/detail/CVE-2024-41657","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/casdoor/casdoor","label":"github.com/casdoor/casdoor","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor","label":"securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor","hostname":"securitylab.github.com","tags":["Advisory"]},{"url":"https://github.com/advisories/GHSA-mchx-7j67-8mcf","label":"github.com/advisories/GHSA-mchx-7j67-8mcf","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-08-20T20:11:29.788Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-20T20:54:45.045Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":45,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T21:32:33.787Z","stale":false,"partial":false}}