CVE-2018-18074:
Insufficiently Protected Credentials in Requests
7.5
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
10/29/2018
Updated
10/21/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
requests | pip | <= 2.19.1 | 2.20.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from improper Authorization header handling during redirects. The commit diff shows:- The original rebuild_auth only checked hostname changes- The patch introduced should_strip_auth to check scheme/port changes- Tests were added for https->http redirect casesThe pre-patch rebuild_auth and resolve_redirects functions failed to account for scheme downgrades on same-host redirects, making them the vulnerable components. The high confidence comes from direct evidence in the patch changes and CVE description.