Bug 2209469 (CVE-2023-32681) - CVE-2023-32681 python-requests: Unintended leak of Proxy-Authorization header
Summary: CVE-2023-32681 python-requests: Unintended leak of Proxy-Authorization header
Keywords:
Status: NEW
Alias: CVE-2023-32681
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2209473 2209474 2209475 2209476 2209477 2209479 2209481 2209673 2209471 2209472 2209478 2209480 2209651
Blocks: 2209260
TreeView+ depends on / blocked
 
Reported: 2023-05-24 03:06 UTC by Sandipan Roy
Modified: 2023-08-08 08:19 UTC (History)
46 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Python-requests package, where it is vulnerable to potentially leaking Proxy-Authorization headers to destination servers, specifically during redirects to an HTTPS origin. This is a product of how rebuild_proxies is used to recompute and reattach the Proxy-Authorization header to requests when redirected. This behavior only affects proxied requests when credentials are supplied in the URL user information component (for example, https://username:password@proxy:8080).
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:4350 0 None None None 2023-08-01 08:49:31 UTC
Red Hat Product Errata RHSA-2023:4520 0 None None None 2023-08-08 08:19:56 UTC

Description Sandipan Roy 2023-05-24 03:06:19 UTC
Versions of Requests between v2.3.0 and v2.30.0 are vulnerable to potential
forwarding of `Proxy-Authorization` headers to destination servers when
following HTTPS redirects.

When proxies are defined with user info (https://user:pass@proxy:8080), Requests
will construct a `Proxy-Authorization` header that is attached to the request to
authenticate with the proxy.

In cases where Requests receives a redirect response, it previously reattached
the `Proxy-Authorization` header incorrectly, resulting in the value being
sent through the tunneled connection to the destination server. Users who rely on
defining their proxy credentials in the URL are *strongly* encouraged to upgrade
to Requests 2.31.0+ to prevent unintentional leakage and rotate their proxy
credentials once the change has been fully deployed.

Users who do not use a proxy or do not supply their proxy credentials through
the user information portion of their proxy URL are not subject to this
vulnerability.

[Github Security Advisory](https://github.com/psf/requests/security/advisories/GHSA-j8r2-6x86-q33q)

Comment 1 Sandipan Roy 2023-05-24 03:12:07 UTC
Created mingw-python-requests tracking bugs for this issue:

Affects: fedora-all [bug 2209471]


Created python-requests tracking bugs for this issue:

Affects: fedora-all [bug 2209472]
Affects: openstack-rdo [bug 2209473]

Comment 8 errata-xmlrpc 2023-08-01 08:49:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:4350 https://access.redhat.com/errata/RHSA-2023:4350

Comment 9 errata-xmlrpc 2023-08-08 08:19:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:4520 https://access.redhat.com/errata/RHSA-2023:4520


Note You need to log in before you can comment on or make changes to this bug.