Skip to main content
← All vulnerabilities
CVE-2023-45289GO-2024-2600BIT-GOLANG-2023-45289

Incorrect forwarding of sensitive headers and cookies on HTTP redirect in net/http

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.21.8, 1.22.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • net/http

    fixed in 1.21.8; From 1.22.0-0 · fixed in 1.22.1

  • net/http/cookiejar

    fixed in 1.21.8; From 1.22.0-0 · fixed in 1.22.1

  • stdlibGo

    fixed in 1.21.8; From 1.22.0-0 · fixed in 1.22.1

References 6

go.dev

groups.google.com

pkg.go.dev

security.netapp.com

openwall.com