{"id":"CVE-2024-41657","aliases":["EUVD-2024-2615","GHSA-mchx-7j67-8mcf","GO-2024-3087"],"status":"published","title":"GHSL-2024-035: Casdoor CORS misconfiguration","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.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.008,"percentile":0.57026,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-697","CWE-942"],"published":"2024-08-20T20:11:29Z","modified":"2026-10-28T02:30:58Z","affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/casdoor/casdoor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.557.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/casdoor/casdoor","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.557.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/casdoor/casdoor","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"products":[{"vendor":"casbin","product":"casdoor"},{"vendor":"casdoor","product":"casdoor"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/","tags":["x_refsource_CONFIRM","Exploit","Third Party Advisory","advisory"]},{"url":"https://github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go#L45","tags":["x_refsource_MISC","Product","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41657","tags":["advisory"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mchx-7j67-8mcf","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41657.json","tags":["advisory"]},{"url":"https://github.com/casdoor/casdoor","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-41657","title":"GHSL-2024-035: Casdoor CORS misconfiguration","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.","status":"published","published":"2024-08-20T20:11:29.788Z","modified":"2024-08-20T20:54:45.045Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-942"],"updated_at":"2026-11-02T14:34:04.00829Z"}],"euvd":[{"id":"EUVD-2024-2615","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.","status":"published","published":"2024-08-20T20:11:29Z","modified":"2024-08-20T20:54:45Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-11-03T00:56:14.606712Z"}],"ghsa":[{"id":"GHSA-mchx-7j67-8mcf","title":"Casdoor CORS misconfiguration (GHSL-2024-035)","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.","status":"published","published":"2024-08-22T17:16:39Z","modified":"2024-08-22T17:16:41Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high"},{"version":"4.0","score":8.6,"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","level":"high"}],"cwes":["CWE-942"],"updated_at":"2026-11-02T14:37:59.336921Z"}],"nvd":[{"id":"CVE-2024-41657","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.","status":"published","published":"2024-08-20T21:15:13.687Z","modified":"2026-06-17T07:47:59.843Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-942","CWE-697"],"updated_at":"2026-11-02T14:10:19.870727Z"}],"osv":[{"id":"CVE-2024-41657","title":"GHSL-2024-035: Casdoor CORS misconfiguration","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.","status":"published","published":"2024-08-20T20:11:29.788Z","modified":"2026-10-28T02:30:58.401793565Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-942"],"updated_at":"2026-11-02T15:44:41.963899Z"},{"id":"GHSA-mchx-7j67-8mcf","title":"Casdoor CORS misconfiguration (GHSL-2024-035)","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.","status":"published","published":"2024-08-22T17:16:39Z","modified":"2024-08-30T17:42:26.105969Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high"},{"version":"4.0","score":8.6,"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","level":"high"}],"cwes":["CWE-942"],"updated_at":"2026-11-02T15:46:51.811331Z"},{"id":"GO-2024-3087","title":"Casdoor CORS misconfiguration (GHSL-2024-035) in github.com/casdoor/casdoor","description":"Casdoor CORS misconfiguration (GHSL-2024-035) in github.com/casdoor/casdoor","status":"published","published":"2024-08-30T17:18:07Z","modified":"2026-03-03T04:55:44.239978Z","updated_at":"2026-11-02T15:47:01.453823Z"}]}}
