GHSA-3C67-5HWX-F6WX
Gradios's CORS origin validation is not performed when the request has a cookie
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 4.44.0 | gradio · -30 d desde divulgación | |
| Divulgación | Publicada | GHSA-3C67-5HWX-F6WX divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
### Impact
What kind of vulnerability is it? Who is impacted?
This vulnerability is related to CORS origin validation, where the Gradio server fails to validate the request origin when a cookie is present. This allows an attacker’s website to make unauthorized requests to a local Gradio server. Potentially, attackers can upload files, steal authentication tokens, and access user data if the victim visits a malicious website while logged into Gradio. This impacts users who have deployed Gradio locally and use basic authentication.
### Patches
Yes, please upgrade to `gradio>=4.44` to address this issue.
### Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
As a workaround, users can manually enforce stricter CORS origin validation by modifying the `CustomCORSMiddleware` class in their local Gradio server code. Specifically, they can bypass the condition that skips CORS validation for requests containing cookies to prevent potential exploitation.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypigradio |
Corregida | 4.44.0 | -30 d | 6.32.0 no afectada |
4.44.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://nvd.nist.gov/vuln/detail/CVE-2024-47084https://github.com/gradio-app/gradio/security/advisories/GHSA-3c67-5hwx-f6wxhttps://github.com/gradio-app/gradiohttps://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-196.yamlLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
