PT-2024-2133 · Unknown+12 · Httpclient+12
Juho Nurminen
·
Published
2024-03-05
·
Updated
2025-09-04
·
CVE-2023-45289
CVSS v3.1
4.3
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
golang versions (affected versions not specified)
http.Client (affected versions not specified)
Description
The issue is related to how an http.Client handles HTTP redirects. When an HTTP redirect is made to a domain that is not a subdomain match or exact match of the initial domain, sensitive headers such as
Authorization or Cookie are not forwarded. However, a maliciously crafted HTTP redirect could cause these sensitive headers to be unexpectedly forwarded. For example, a redirect from foo.com to www.foo.com will forward the Authorization header, but a redirect to bar.com will not.Recommendations
For golang, at the moment, there is no information about a newer version that contains a fix for this vulnerability.
For http.Client, consider restricting the forwarding of sensitive headers to only trusted domains to minimize the risk of exploitation. As a temporary workaround, consider disabling the automatic forwarding of sensitive headers until a patch is available.
Information Disclosure
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Debian
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Golang
Httpclient