llamaCVEVulnerability Intelligence
/
Advisory · GitHub · RubyGems · actionview

GHSA-XQ5J-GW7F-JGJ8

CSRF Vulnerability in rails-ujs

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche a -50 d de la divulgación
Exposición2.327 dDesde la divulgación, 7 jul 2020, 11:34 a. m.
Detección2.323 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 5.2.4.3 +1
Monitoreo
Detectada
18 may 20
7 jul 20
16 feb 24
17 nov 26
21 nov 26
18 may 20
3 ene 22
20 ago 23
5 abr 25
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 5.2.4.3 actionview · -50 d desde divulgación
Remediación Parche 6.0.3.1 actionview · -50 d desde divulgación
Divulgación Publicada GHSA-XQ5J-GW7F-JGJ8 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

There is a vulnerability in rails-ujs that allows attackers to send CSRF tokens to wrong domains.

Versions Affected: rails <= 6.0.3
Not affected: Applications which don't use rails-ujs.
Fixed Versions: rails >= 5.2.4.3, rails >= 6.0.3.1

Impact
------

This is a regression of CVE-2015-1840.

In the scenario where an attacker might be able to control the href attribute of an anchor tag or the action attribute of a form tag that will trigger a POST action, the attacker can set the href or action to a cross-origin URL, and the CSRF token will be sent.

Workarounds
-----------

To work around this problem, change code that allows users to control the href attribute of an anchor tag or the action attribute of a form tag to filter the user parameters.

For example, code like this:

link_to params

to code like this:

link_to filtered_params

def filtered_params
# Filter just the parameters that you trust
end

Versiones

Rangos afectados

Afectada Corregida Última
actionview≥ 5.0.0 < 5.2.4.3
actionview≥ 6.0.0 < 6.0.3.1
5.0.0
5.2.4.3
6.0.0
6.0.3.1
8.1.4.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
rubygemsactionview
Corregida 5.2.4.3, 6.0.3.1 -50 d · -50 d 8.1.4.1 no afectada
Versiones corregidas5.2.4.36.0.3.1
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2020-8167
Otrahttps://hackerone.com/reports/189878
Otrahttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2020-8167.yml
Otrahttps://groups.google.com/forum/#!topic/rubyonrails-security/x9DixQDG9a0
Otrahttps://groups.google.com/g/rubyonrails-security/c/x9DixQDG9a0
Otrahttps://www.debian.org/security/2020/dsa-4766

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.