{"id":"CVE-2024-41657","aliases":["CVE-2024-41657","GHSA-mchx-7j67-8mcf","GO-2024-3087"],"related":[],"kind":"vulnerability","state":"published","title":"GHSL-2024-035: Casdoor CORS misconfiguration","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Casdoor CORS misconfiguration (GHSL-2024-035) in github.com/casdoor/casdoor","format":"markdown","source":"go"},{"lang":"es","text":"Casdoor es una plataforma de gestión de acceso e identidad (IAM)/inicio de sesión único (SSO) basada en la interfaz de usuario. En Casdoor 1.577.0 y versiones anteriores, existe una vulnerabilidad lógica en el filtro beego CorsFilter que permite que cualquier sitio web realice solicitudes entre dominios a Casdoor como usuario conectado. Debido a un error lógico al verificar solo un prefijo al autenticar el encabezado de Origen, cualquier dominio puede crear un subdominio válido con un prefijo de subdominio válido (Ej.: localhost.example.com), permitiendo que el sitio web realice solicitudes a Casdoor como usuario que ha iniciado sesión actualmente.","source":"nvd"}],"published":"2024-08-20T20:11:29.788Z","modified":"2026-06-17T07:47:59.843Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-697","CWE-942"],"affected":[{"ranges":[{"version":"<= 1.577.0","status":"affected"}],"vendor":"casdoor","product":"casdoor","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"1.577.0","status":"affected"}],"vendor":"casbin","product":"casdoor","cpe":"cpe:2.3:a:casbin:casdoor:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.557.0"}],"ecosystem":"Go","package":"github.com/casdoor/casdoor","purl":"pkg:golang/github.com/casdoor/casdoor","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/casdoor/casdoor","purl":"pkg:golang/github.com/casdoor/casdoor","source":"go"},{"ranges":[],"vendor":"casbin","product":"casdoor","cpe":"cpe:2.3:a:casbin:casdoor:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/","tags":["exploit","third-party-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go#L45","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41657","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/casdoor/casdoor","tags":["package"],"sources":["ghsa"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-mchx-7j67-8mcf","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-08-20T20:53:11.068Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-41657","url":"https://www.cve.org/CVERecord?id=CVE-2024-41657","licence":"CVE Terms of Use","modified":"2024-08-20T20:54:45.045Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mchx-7j67-8mcf","url":"https://github.com/advisories/GHSA-mchx-7j67-8mcf","licence":"CC-BY-4.0","modified":"2024-08-30T17:42:26.105Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3087","url":"https://pkg.go.dev/vuln/GO-2024-3087","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:44.239Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-41657","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41657","licence":"Public domain","modified":"2026-06-17T07:47:59.843Z"}],"updatedAt":"2026-11-25T22:58:44.598Z","epss":{"score":0.008,"percentile":0.57758,"date":"2026-12-01T12:00:22.000Z"}}