Exploit database

Vulnerability

CVE-2023-32681

Unintended leak of Proxy-Authorization header in requests

Vulnerability details

Score
6.1
Severity
medium

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N

Description

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.

CVE Program

Exploit source choices

3 sources
appthreat/cpggen
GH-549c2e852cd657eae791f9f91c606e1bGitHubUnofficial GitHub sourcePreferred

Generate CPG for multiple languages for code and threat analysis

2023-03-2749 files · 12 stars
hardikmodha/poc-cve-2023-32681
GH-cf56c56b24781f9c4bf46365f28002bcGitHubUnofficial GitHub source

POC for the CVE-2023-32681

2023-07-2212 files · 4 stars
devgreick/vulnhunter
GH-4d485982681ce4d18b601550705be783GitHubUnofficial GitHub source

Offline CVE scanner for project dependencies.

2025-05-0971 files · 0 stars