{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-41657","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 subd","descriptionLong":"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.","published":"2024-08-20T20:11:29.788Z","updated":"2026-10-28T02:30:58.401793565Z","reserved":"2024-07-18T15:21:47.482Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":null,"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","source":"GitHub"},{"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","rating":"high","source":"GitHub_M"},{"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","rating":"high","source":"github.com"},{"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","rating":"high","source":"NVD"},{"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","rating":"high","source":"OSV"},{"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","rating":"high","source":"GitHub"}],"rating":"high","products":["casdoor"],"affectedProducts":[{"vendor":"casdoor","product":"casdoor","defaultStatus":null,"versions":[{"version":"<= 1.577.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/casdoor/casdoor","purl":"pkg:golang/github.com/casdoor/casdoor","ranges":["<=1.557.0","all versions"],"fixed":[],"advisory":"GHSA-mchx-7j67-8mcf"}],"cwes":["CWE-942","CWE-697"],"aliases":["GHSA-mchx-7j67-8mcf","GO-2024-3087"],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41657.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41657","tags":["advisory"]},{"url":"https://github.com/casdoor/casdoor","tags":["package"]},{"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"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.008,"epssPercentile":0.57364,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-41657","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41657","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-41657","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mchx-7j67-8mcf","ok":true,"note":"GHSA-mchx-7j67-8mcf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-41657","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}