llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · scrapy

GHSA-9X8M-2XPF-CRP3

Scrapy before 2.6.2 and 1.8.3 vulnerable to one proxy sending credentials to another

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche a -4 d de la divulgación
Exposición1.575 dDesde la divulgación, 29 jul 2022, 5:26 p. m.
Detección1.571 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de la severidad declarada por GHSA (media) y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Traje la llave inglesa: esto se arregla.Esto no amerita reunión. Un ticket basta.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 1.8.3 +1
Monitoreo
Detectada
25 jul 22
29 jul 22
28 nov 24
17 nov 26
21 nov 26
25 jul 22
24 ago 23
22 sept 24
22 oct 25
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 1.8.3 scrapy · -4 d desde divulgación
Remediación Parche 2.6.2 scrapy · -4 d desde divulgación
Divulgación Publicada GHSA-9X8M-2XPF-CRP3 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
Impact

When the built-in HTTP proxy downloader middleware https://docs.scrapy.org/en/2.6/topics/downloader-middleware.html#module-scrapy.downloadermiddlewares.httpproxy processes a request with `proxy` metadata, and that `proxy` metadata includes proxy credentials, the built-in HTTP proxy downloader middleware sets the `Proxy-Authentication` header, but only if that header is not already set.

There are third-party proxy-rotation downloader middlewares that set different `proxy` metadata every time they process a request.

Because of request retries and redirects, the same request can be processed by downloader middlewares more than once, including both the built-in HTTP proxy downloader middleware and any third-party proxy-rotation downloader middleware.

These third-party proxy-rotation downloader middlewares could change the `proxy` metadata of a request to a new value, but fail to remove the `Proxy-Authentication` header from the previous value of the `proxy` metadata, causing the credentials of one proxy to be leaked to a different proxy.

If you rotate proxies from different proxy providers, and any of those proxies requires credentials, you are affected, unless you are handling proxy rotation as described under Workarounds below. If you use a third-party downloader middleware for proxy rotation, the same applies to that downloader middleware, and installing a patched version of Scrapy may not be enough; patching that downloader middlware may be necessary as well.

Patches

Upgrade to Scrapy 2.6.2.

If you are using Scrapy 1.8 or a lower version, and upgrading to Scrapy 2.6.2 is not an option, you may upgrade to Scrapy 1.8.3 instead.

Workarounds

If you cannot upgrade, make sure that any code that changes the value of the `proxy` request meta also removes the `Proxy-Authorization` header from the request if present.

For more information

If you have any questions or comments about this advisory:
* Open an issue https://github.com/scrapy/scrapy/issues
* [Email us](mailto:opensource@zyte.com)

Versiones

Rangos afectados

Afectada Corregida Última
scrapy< 1.8.3
scrapy≥ 2.0.0 < 2.6.2
1.8.3
2.0.0
2.6.2
2.20.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypiscrapy
Corregida 1.8.3, 2.6.2 -4 d · -4 d 2.20.0 no afectada
Versiones corregidas1.8.32.6.2
Explotación

Arsenal público

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

Referencias
Otrahttps://github.com/scrapy/scrapy/security/advisories/GHSA-9x8m-2xpf-crp3
Otrahttps://github.com/scrapy/scrapy/commit/af7dd16d8ded3e6cb2946603688f4f4a5212e80f
Otrahttps://github.com/scrapy/scrapy

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