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 2276431 2276432 2276433 2276434 2292178 2292179 2268243 2276435 2276436
Blocks: 2268016
TreeView+ depends on / blocked
 
Reported: 2024-03-06 01:53 UTC by Robb Gatica
Modified: 2024-09-26 03:48 UTC (History)
70 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 RHBA-2024:3397 0 None None None 2024-05-28 13:00:05 UTC
Red Hat Product Errata RHBA-2024:4031 0 None None None 2024-06-20 14:52:06 UTC
Red Hat Product Errata RHBA-2024:4032 0 None None None 2024-06-20 14:52:23 UTC
Red Hat Product Errata RHBA-2024:4033 0 None None None 2024-06-20 15:39:54 UTC
Red Hat Product Errata RHSA-2024:0041 0 None None None 2024-06-27 11:23:51 UTC
Red Hat Product Errata RHSA-2024:0045 0 None None None 2024-06-27 13:01:05 UTC
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
Red Hat Product Errata RHSA-2024:3259 0 None None None 2024-05-22 11:39:53 UTC
Red Hat Product Errata RHSA-2024:3346 0 None None None 2024-05-23 18:06:22 UTC
Red Hat Product Errata RHSA-2024:3621 0 None None None 2024-06-05 05:15:36 UTC
Red Hat Product Errata RHSA-2024:3790 0 None None None 2024-06-11 02:33:44 UTC
Red Hat Product Errata RHSA-2024:3868 0 None None None 2024-06-17 00:44:10 UTC
Red Hat Product Errata RHSA-2024:4023 0 None None None 2024-06-20 12:37:27 UTC
Red Hat Product Errata RHSA-2024:4028 0 None None None 2024-06-20 13:20:16 UTC
Red Hat Product Errata RHSA-2024:7164 0 None None None 2024-09-26 03:48:02 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

Comment 9 errata-xmlrpc 2024-05-22 11:39:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 10 errata-xmlrpc 2024-05-23 18:06:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 11 errata-xmlrpc 2024-06-05 05:15:32 UTC
This issue has been addressed in the following products:

  Red Hat Openshift distributed tracing 3.2

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

Comment 13 errata-xmlrpc 2024-06-11 02:33:38 UTC
This issue has been addressed in the following products:

  OADP-1.3-RHEL-9

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

Comment 15 errata-xmlrpc 2024-06-17 00:44:05 UTC
This issue has been addressed in the following products:

  NETWORK-OBSERVABILITY-1.6.0-RHEL-9

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

Comment 16 errata-xmlrpc 2024-06-20 12:37:21 UTC
This issue has been addressed in the following products:

  Openshift Serverless 1 on RHEL 8

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

Comment 17 errata-xmlrpc 2024-06-20 13:20:11 UTC
This issue has been addressed in the following products:

  RHOSS-1.33-RHEL-8

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

Comment 18 errata-xmlrpc 2024-06-27 11:23:47 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.16

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

Comment 19 errata-xmlrpc 2024-06-27 13:01:00 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.16

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

Comment 20 errata-xmlrpc 2024-09-26 03:47:58 UTC
This issue has been addressed in the following products:

  Red Hat Migration Toolkit for Containers 1.8

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


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