CVE-2024-41657
JSON

8.1high

GHSL-2024-035: Casdoor CORS misconfiguration

Severity
8.1high CVSS:3.1 by GitHub_M
Exploit likelihood
0.80% (higher than 57% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-mchx-7j67-8mcfGO-2024-3087

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.

Affected

Product or packageVersionsReported by
casdoor casdoor<= 1.577.0CVE List
casbin casdoorup to 1.577.0CVE List, NVD
github.com/casdoor/casdoor (Go)up to 1.557.0, all versionsGitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-697CWE-942

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

Go Vulnerability Database

Casdoor CORS misconfiguration (GHSL-2024-035) in github.com/casdoor/casdoor

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-41657 changed 2024-08-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-mchx-7j67-8mcf changed 2024-08-30CC-BY-4.0
Go Vulnerability DatabaseGO-2024-3087 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-41657 changed 2026-06-17Public domain