niklasheld/zdf-download

Snyk’s security scan found the following vulnerabilities.
Ready to fix your vulnerabilities? Automatically find, fix, and monitor vulnerabilities for free with Snyk.

Vulnerabilities

2 via 2 paths

Dependencies

11

Source

GitHub

Commit

d3ba8ecf

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 2
  • 1
Severity
  • 3
Status
  • 3
  • 0
  • 0

medium severity

Information Exposure

  • Vulnerable module: requests
  • Introduced through: requests@2.26.0

Detailed paths

  • Introduced through: niklasheld/zdf-download@niklasheld/zdf-download#d3ba8ecf0f63f39939380fde29b23e0d9585c67b requests@2.26.0
    Remediation: 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:

  1. HTTP → HTTPS: leak

  2. HTTPS → HTTP: no leak

  3. HTTPS → HTTPS: leak

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

Always-Incorrect Control Flow Implementation

  • Vulnerable module: requests
  • Introduced through: requests@2.26.0

Detailed paths

  • Introduced through: niklasheld/zdf-download@niklasheld/zdf-download#d3ba8ecf0f63f39939380fde29b23e0d9585c67b requests@2.26.0
    Remediation: 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:

  1. For requests <2.32.0, avoid setting verify=False for the first request to a host while using a Requests Session.

  2. For requests <2.32.0, call close() on Session objects to clear existing connections if verify=False is used.

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

MPL-2.0 license

  • 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