PT-2018-1000 · Python+6 · Requests+6
Published
2018-06-29
·
Updated
2026-02-04
·
CVE-2018-18074
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
Requests versions prior to 2.20.0
Description
The issue is related to a lack of mechanism for storing registration data in the Python Requests library, which handles HTTP requests. This can allow a remote attacker to gain access to confidential data by exploiting the vulnerability. Specifically, when the Requests package receives a same-hostname https-to-http redirect, it sends an HTTP Authorization header to an http URI, making it easier for attackers to discover credentials by sniffing the network.
Recommendations
For versions prior to 2.20.0, update to version 2.20.0 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
Authorization header in HTTP requests to minimize the risk of exploitation. Avoid using the Authorization header in the affected API endpoint until the issue is resolved.Exploit
Fix
Insufficiently Protected Credentials
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Almalinux
Centos
Red Hat
Requests
Rocky Linux
Suse
Ubuntu