Bug 1221000 (CVE-2023-45289)

Summary: VUL-0: CVE-2023-45289 go1.21,go1.22: net/http, net/http/cookiejar: incorrect forwarding of sensitive headers and cookies on HTTP redirect
Product: [Novell Products] SUSE Security Incidents Reporter: Jeff Kowalczyk <jkowalczyk>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: meissner, rfrohl
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/396423/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-45289:7.5:(AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N)
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jeff Kowalczyk 2024-03-06 01:48:57 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.

Thanks to Juho Nurminen of Mattermost for reporting this issue.

This is CVE-2023-45289 and Go issue https://go.dev/issue/65065.
Comment 2 OBSbugzilla Bot 2024-03-06 05:35:07 UTC
This is an autogenerated message for OBS integration:
This bug (1221000) was mentioned in
https://build.opensuse.org/request/show/1155402 Factory / go1.21
https://build.opensuse.org/request/show/1155403 Factory / go1.22
Comment 3 Maintenance Automation 2024-03-07 12:30:17 UTC
SUSE-SU-2024:0800-1: An update that solves five vulnerabilities and has two security fixes can now be installed.

Category: security (important)
Bug References: 1212475, 1219988, 1220999, 1221000, 1221001, 1221002, 1221003
CVE References: CVE-2023-45289, CVE-2023-45290, CVE-2024-24783, CVE-2024-24784, CVE-2024-24785
Sources used:
SUSE Linux Enterprise Software Development Kit 12 SP5 (src): go1.21-1.21.8-1.27.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 4 Maintenance Automation 2024-03-08 08:30:03 UTC
SUSE-SU-2024:0812-1: An update that solves five vulnerabilities and has two security fixes can now be installed.

Category: security (important)
Bug References: 1218424, 1219988, 1220999, 1221000, 1221001, 1221002, 1221003
CVE References: CVE-2023-45289, CVE-2023-45290, CVE-2024-24783, CVE-2024-24784, CVE-2024-24785
Sources used:
openSUSE Leap 15.5 (src): go1.22-1.22.1-150000.1.9.1
Development Tools Module 15-SP5 (src): go1.22-1.22.1-150000.1.9.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 5 Maintenance Automation 2024-03-08 08:30:08 UTC
SUSE-SU-2024:0811-1: An update that solves five vulnerabilities and has two security fixes can now be installed.

Category: security (important)
Bug References: 1212475, 1219988, 1220999, 1221000, 1221001, 1221002, 1221003
CVE References: CVE-2023-45289, CVE-2023-45290, CVE-2024-24783, CVE-2024-24784, CVE-2024-24785
Sources used:
openSUSE Leap 15.5 (src): go1.21-1.21.8-150000.1.27.1
Development Tools Module 15-SP5 (src): go1.21-1.21.8-150000.1.27.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src): go1.21-1.21.8-150000.1.27.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src): go1.21-1.21.8-150000.1.27.1
SUSE Linux Enterprise Desktop 15 SP4 LTSS 15-SP4 (src): go1.21-1.21.8-150000.1.27.1
SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src): go1.21-1.21.8-150000.1.27.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src): go1.21-1.21.8-150000.1.27.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 6 Maintenance Automation 2024-03-22 12:31:40 UTC
SUSE-SU-2024:0936-1: An update that solves five vulnerabilities and has two security fixes can now be installed.

Category: security (important)
Bug References: 1218424, 1219988, 1220999, 1221000, 1221001, 1221002, 1221003
CVE References: CVE-2023-45289, CVE-2023-45290, CVE-2024-24783, CVE-2024-24784, CVE-2024-24785
Maintenance Incident: [SUSE:Maintenance:32983](https://smelt.suse.de/incident/32983/)
Sources used:
SUSE Linux Enterprise Software Development Kit 12 SP5 (src):
 go1.22-1.22.1-1.3.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 8 Marcus Meissner 2024-05-16 12:17:51 UTC
released