Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2023-32681

Опубликовано: 23 мая 2023
Источник: redhat
CVSS3: 6.1
EPSS Низкий

Описание

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.

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).

Меры по смягчению последствий

For users who are not able to update Requests immediately, there is one potential workaround. You may disable redirects by setting allow_redirects to False on all calls through Requests top-level APIs. Note that if you are currently relying on redirect behaviors, you will need to capture the 3xx response codes and ensure a new request is made to the redirect destination. import requests r = requests.get('http://github.com/', allow_redirects=False)

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Ansible Automation Platform 1.2python-requestsAffected
Red Hat Enterprise Linux 6python-requestsOut of support scope
Red Hat Enterprise Linux 7python-requestsOut of support scope
Red Hat OpenShift Container Platform 3.11python-requestsOut of support scope
Red Hat OpenStack Platform 13 (Queens)python-requestsOut of support scope
Red Hat Update Infrastructure 4 for Cloud Providerspython-requestsAffected
Red Hat Ansible Automation Platform 2.4 for RHEL 8python3x-requestsFixedRHSA-2023:469321.08.2023
Red Hat Enterprise Linux 8python39FixedRHSA-2023:703414.11.2023
Red Hat Enterprise Linux 8python39-develFixedRHSA-2023:703414.11.2023
Red Hat Enterprise Linux 8python27FixedRHSA-2023:704214.11.2023

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-402
https://bugzilla.redhat.com/show_bug.cgi?id=2209469python-requests: Unintended leak of Proxy-Authorization header

EPSS

Процентиль: 90%
0.06121
Низкий

6.1 Medium

CVSS3

Связанные уязвимости

CVSS3: 6.1
ubuntu
около 2 лет назад

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.

CVSS3: 6.1
nvd
около 2 лет назад

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.

CVSS3: 6.1
msrc
около 2 лет назад

Описание отсутствует

CVSS3: 6.1
debian
около 2 лет назад

Requests is a HTTP library. Since Requests 2.3.0, Requests has been le ...

suse-cvrf
11 месяцев назад

Security update for python-requests

EPSS

Процентиль: 90%
0.06121
Низкий

6.1 Medium

CVSS3