{"id":"CVE-2024-41657","state":"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.","publishedAt":"2024-08-20T20:11:29.788Z","updatedAt":"2024-08-20T20:54:45.045Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["casdoor casdoor"],"affected":[{"vendor":"casdoor","product":"casdoor","versions":[{"version":"<= 1.577.0","status":"affected"}]}],"references":["https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/","https://github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go#L45"],"weaknesses":["CWE-942"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/41xxx/CVE-2024-41657.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-41657","state":"PUBLISHED","datePublished":"2024-08-20T20:11:29.788Z","dateUpdated":"2024-08-20T20:54:45.045Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-07-18T15:21:47.482Z"},"containers":{"cna":{"title":"GHSL-2024-035: Casdoor CORS misconfiguration","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"casdoor","product":"casdoor","versions":[{"version":"<= 1.577.0","status":"affected"}]}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/","name":"https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go#L45","name":"https://github.com/casdoor/casdoor/blob/v1.577.0/routers/cors_filter.go#L45","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-942","lang":"en","description":"CWE-942: Permissive Cross-domain Policy with Untrusted Domains","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-08-20T20:11:29.788Z"},"source":{"advisory":"GHSA-mchx-7j67-8mcf","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"casbin","product":"casdoor","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"1.577.0","versionType":"custom"}],"cpes":["cpe:2.3:a:casbin:casdoor:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-08-20T20:53:11.068829Z","id":"CVE-2024-41657","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-20T20:54:45.045Z"}}]}}}