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 2209471 2209472 2209474 2209475 2209476 2209477 2209478 2209479 2209480 2209481 2209651 2209673
Blocks: 2209260
TreeView+ depends on / blocked
 
Reported: 2023-05-24 03:06 UTC by Sandipan Roy
Modified: 2024-01-18 16:24 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 RHBA-2023:6800 0 None None None 2023-11-08 09:36:11 UTC
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
Red Hat Product Errata RHSA-2023:4693 0 None None None 2023-08-21 21:49:40 UTC
Red Hat Product Errata RHSA-2023:6793 0 None None None 2023-11-08 08:17:17 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:17:28 UTC
Red Hat Product Errata RHSA-2023:7034 0 None None None 2023-11-14 15:19:14 UTC
Red Hat Product Errata RHSA-2023:7042 0 None None None 2023-11-14 15:22:30 UTC
Red Hat Product Errata RHSA-2023:7050 0 None None None 2023-11-14 15:19:21 UTC
Red Hat Product Errata RHSA-2024:0299 0 None None None 2024-01-18 16:24: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

Comment 10 errata-xmlrpc 2023-08-21 21:49:38 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.4 for RHEL 8
  Red Hat Ansible Automation Platform 2.4 for RHEL 9

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

Comment 11 errata-xmlrpc 2023-11-08 08:17:14 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7

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

Comment 12 errata-xmlrpc 2023-11-08 14:17:25 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.14 for RHEL 8

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

Comment 13 errata-xmlrpc 2023-11-14 15:19:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 14 errata-xmlrpc 2023-11-14 15:19:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 15 errata-xmlrpc 2023-11-14 15:22:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 18 errata-xmlrpc 2024-01-18 16:24:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:0299 https://access.redhat.com/errata/RHSA-2024:0299


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