llamaCVEVulnerability Intelligence
/
Advisory · GitHub · RubyGems · mechanize

GHSA-64QM-HRGP-PGR9

Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición1.624 dDesde la divulgación, 9 jun 2022, 6:47 p. m.
Detección1.621 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 2.8.5
Monitoreo
Detectada
9 jun 22
8 nov 23
17 nov 26
20 nov 26
9 jun 22
21 jul 23
30 ago 24
10 oct 25
20 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-64QM-HRGP-PGR9 divulgada
Remediación Parche 2.8.5 mechanize · 0 d desde divulgación
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Summary

Mechanize (rubygem) `< v2.8.5` leaks the `Authorization` header after a redirect to a different port on the same site.

Mitigation

Upgrade to Mechanize v2.8.5 or later.

Notes

See [https://curl.se/docs/CVE-2022-27776.html](CVE-2022-27776) for a similar vulnerability in curl.

Cookies are shared with a server at a different port on the same site, per https://datatracker.ietf.org/doc/html/rfc6265#section-8.5 which states in part:

> Cookies do not provide isolation by port. If a cookie is readable
> by a service running on one port, the cookie is also readable by a
> service running on another port of the same server. If a cookie is
> writable by a service on one port, the cookie is also writable by a
> service running on another port of the same server. For this
> reason, servers SHOULD NOT both run mutually distrusting services on
> different ports of the same host and use cookies to store security-
> sensitive information.

Versiones

Rangos afectados

Afectada Corregida Última
mechanize< 2.8.5
2.8.5
2.14.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
rubygemsmechanize
Corregida 2.8.5 0 d 2.14.2 no afectada
Versiones corregidas2.8.5
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-2022-31033
Otrahttps://github.com/sparklemotion/mechanize/security/advisories/GHSA-64qm-hrgp-pgr9
Otrahttps://github.com/sparklemotion/mechanize/commit/c7fe6996a5b95f9880653ba3bc548a8d4ef72317
Otrahttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/mechanize/CVE-2022-31033.yml
Otrahttps://github.com/sparklemotion/mechanize

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