Advisory

PYSEC-2023-74

Also known as: CVE-2023-32681, GHSA-j8r2-6x86-q33q

Summary

The record has no summary.

Details

Requests is a HTTP library. Since Requests 2.3.0, Requests has been leaking Proxy-Authorization headers to destination servers when redirected to an HTTPS endpoint. This is a product of how we use rebuild_proxies to reattach the Proxy-Authorization header to requests. For HTTP connections sent through the tunnel, the proxy will identify the header in the request itself and remove it prior to forwarding to the destination server. However when sent over HTTPS, the Proxy-Authorization header must be sent in the CONNECT request as the proxy has no visibility into the tunneled request. This results in Requests forwarding proxy credentials to the destination server unintentionally, allowing a malicious actor to potentially exfiltrate sensitive information. This issue has been patched in version 2.31.0.

Severity

Not rated by the source.

Dates

Published
2023-05-26 18:15 UTC
Modified
2023-11-08 04:12 UTC

Affected packages and fixes

requests

PyPI · All systems

Affected

  • introduced 2.3.0, fixed 2.31.0 (ecosystem)

Fixed versions

2.31.0

Fix

  • Fixed version 2.31.0
    pip install --upgrade requests==2.31.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences