When following an HTTP redirect to a domain which is not...
Moderate severity
Unreviewed
Published
Mar 6, 2024
to the GitHub Advisory Database
•
Updated Nov 4, 2024
Description
Published by the National Vulnerability Database
Mar 5, 2024
Published to the GitHub Advisory Database
Mar 6, 2024
Last updated
Nov 4, 2024
When following an HTTP redirect to a domain which is not a subdomain match or exact match of the initial domain, an http.Client does not forward sensitive headers such as "Authorization" or "Cookie". For example, a redirect from foo.com to www.foo.com will forward the Authorization header, but a redirect to bar.com will not. A maliciously crafted HTTP redirect could cause sensitive headers to be unexpectedly forwarded.
References