niklasheld/zdf-download
Ready to fix your vulnerabilities? Automatically find, fix, and monitor vulnerabilities for free with Snyk.
Find, fix and prevent vulnerabilities in your code.
medium severity
- Vulnerable module: requests
- Introduced through: requests@2.26.0
Detailed paths
-
Introduced through: niklasheld/zdf-download@niklasheld/zdf-download#d3ba8ecf0f63f39939380fde29b23e0d9585c67b › requests@2.26.0Remediation: Upgrade to requests@2.31.0.
Overview
Affected versions of this package are vulnerable to Information Exposure by leaking Proxy-Authorization
headers to destination servers during redirects to an HTTPS origin. This is a result of how rebuild_proxies
is used to recompute and reattach the Proxy-Authorization
header to requests when redirected.
NOTE: This behavior has only been observed to affect proxied requests when credentials are supplied in the URL user information component (e.g. https://username:password@proxy:8080
), and only when redirecting to HTTPS:
HTTP → HTTPS: leak
HTTPS → HTTP: no leak
HTTPS → HTTPS: leak
HTTP → HTTP: no leak
For HTTP connections sent through the proxy, the proxy will identify the header in the request 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 further tunneled requests. This results in Requests forwarding the header to the destination server unintentionally, allowing a malicious actor to potentially exfiltrate those credentials.
Workaround
This vulnerability can be avoided by setting allow_redirects
to False
on all calls through Requests top-level APIs, and then capturing the 3xx response codes to make a new request to the redirect destination.
Remediation
Upgrade requests
to version 2.31.0 or higher.
References
medium severity
- Vulnerable module: requests
- Introduced through: requests@2.26.0
Detailed paths
-
Introduced through: niklasheld/zdf-download@niklasheld/zdf-download#d3ba8ecf0f63f39939380fde29b23e0d9585c67b › requests@2.26.0Remediation: Upgrade to requests@2.32.2.
Overview
Affected versions of this package are vulnerable to Always-Incorrect Control Flow Implementation when making requests through a Requests Session
. An attacker can bypass certificate verification by making the first request with verify=False
, causing all subsequent requests to ignore certificate verification regardless of changes to the verify
value.
Notes:
For requests <2.32.0, avoid setting
verify=False
for the first request to a host while using a Requests Session.For requests <2.32.0, call
close()
on Session objects to clear existing connections ifverify=False
is used.This vulnerability was initially fixed in version 2.32.0, which was yanked. Therefore, the next available fixed version is 2.32.2.
Remediation
Upgrade requests
to version 2.32.2 or higher.
References
medium severity
new
- Module: certifi
- Introduced through: requests@2.26.0
Detailed paths
-
Introduced through: niklasheld/zdf-download@niklasheld/zdf-download#d3ba8ecf0f63f39939380fde29b23e0d9585c67b › requests@2.26.0 › certifi@2025.1.31
MPL-2.0 license