Bug 2268018 (CVE-2023-45289) - CVE-2023-45289 golang: net/http/cookiejar: incorrect forwarding of sensitive headers and cookies on HTTP redirect
Summary: CVE-2023-45289 golang: net/http/cookiejar: incorrect forwarding of sensitive ...
Keywords:
Status: NEW
Alias: CVE-2023-45289
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2268242 2268243 2276431 2276432 2276433 2276434 2276435 2276436
Blocks: 2268016
TreeView+ depends on / blocked
 
Reported: 2024-03-06 01:53 UTC by Robb Gatica
Modified: 2024-05-07 10:38 UTC (History)
72 users (show)

Fixed In Version: go 1.21.8, go 1.22.1
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Go's net/http/cookiejar standard library package. When following an HTTP redirect to a domain that is not a subdomain match or an 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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:2562 0 None None None 2024-04-30 14:39:39 UTC
Red Hat Product Errata RHSA-2024:2724 0 None None None 2024-05-07 10:38:41 UTC

Description Robb Gatica 2024-03-06 01:53:52 UTC
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.
https://github.com/golang/go/issues/65065

Comment 1 Robb Gatica 2024-03-06 19:15:16 UTC
Created golang tracking bugs for this issue:

Affects: epel-all [bug 2268243]
Affects: fedora-all [bug 2268242]

Comment 7 errata-xmlrpc 2024-04-30 14:39:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2562 https://access.redhat.com/errata/RHSA-2024:2562

Comment 8 errata-xmlrpc 2024-05-07 10:38:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2724 https://access.redhat.com/errata/RHSA-2024:2724


Note You need to log in before you can comment on or make changes to this bug.