Python Requests before version 2.20.0 does not remove the HTTP Authorization header when following a HTTPS to HTTP redirect, allowing for the potential transmission of user credentials in plaintext. Upstream Patch: https://github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff Upstream Issue: https://github.com/requests/requests/pull/4718
Created python-requests tracking bugs for this issue: Affects: fedora-all [bug 1643830] Affects: openstack-rdo [bug 1643832]
When resolving a redirect, affected python-requests versions remove the Authorization header only when the original and the new hostname mismatch, instead of checking the scheme and port too. Thus Authorization header is sent when redirecting from HTTPS to HTTP servers with the same hostname. An attacker that can sniff the traffic in transit between these two hosts can also read the Authorization header in plain text.
Does Red Hat plan to make an updated package available for RHEL ?
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2019:2035 https://access.redhat.com/errata/RHSA-2019:2035
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2018-18074
Created python-pip tracking bugs for this issue: Affects: epel-6 [bug 1778141] Created python-pip-epel tracking bugs for this issue: Affects: epel-7 [bug 1778142] Created python-virtualenv tracking bugs for this issue: Affects: epel-6 [bug 1778147] Affects: fedora-30 [bug 1778145] Created python3-requests tracking bugs for this issue: Affects: epel-6 [bug 1778143] Affects: epel-7 [bug 1778144] Created python3-virtualenv tracking bugs for this issue: Affects: epel-7 [bug 1778148]
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2020:0850 https://access.redhat.com/errata/RHSA-2020:0850
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2020:0851 https://access.redhat.com/errata/RHSA-2020:0851
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2020:1605 https://access.redhat.com/errata/RHSA-2020:1605
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2020:1916 https://access.redhat.com/errata/RHSA-2020:1916
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2020:2068 https://access.redhat.com/errata/RHSA-2020:2068
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2020:2081 https://access.redhat.com/errata/RHSA-2020:2081