UBUNTU-CVE-2023-45289
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.
02 / AFFECTED SOFTWARE
Affected packages
1 explicit affected versions
2 explicit affected versions
10 explicit affected versions
8 explicit affected versions
2 explicit affected versions
5 explicit affected versions
10 explicit affected versions
9 explicit affected versions
3 explicit affected versions
2 explicit affected versions
2 explicit affected versions
6 explicit affected versions
8 explicit affected versions
2 explicit affected versions
2 explicit affected versions
4 explicit affected versions
2 explicit affected versions
4 explicit affected versions
2 explicit affected versions
3 explicit affected versions
3 explicit affected versions
4 explicit affected versions
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
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.
05 / REFERENCES
Further evidence
- https://github.com/golang/go/commit/20586c0dbe03d144f914155f879fa5ee287591a1
- https://github.com/golang/go/commit/3a855208e3efed2e9d7c20ad023f1fa78afcc0be
- https://github.com/golang/go/issues/65065
- https://go.dev/cl/569340
- https://go.dev/issue/65065
- https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg
- https://pkg.go.dev/vuln/GO-2024-2600
- https://ubuntu.com/security/CVE-2023-45289
- https://ubuntu.com/security/notices/USN-6886-1
- https://www.cve.org/CVERecord?id=CVE-2023-45289