Endpoint Vulnerability

CVE-2018-18074python-requests: Redirect from HTTPS to HTTP does not remove Authorization header

Description

A credentials-exposure flaw was found in python-requests, where if a request with authentication is redirected (302) from an HTTPS endpoint to an HTTP endpoint on the same host, the Authorization header is not stripped and the credentials can be read in plain text. A man-in-the-middle attacker could exploit this flaw to obtain a user's valid credentials.

Affected Products

python-requests

References

CVE-2018-18074,