Vulnerabilites related to Go standard library - net/http/cookiejar
cve-2023-45289
Vulnerability from cvelistv5
Published
2024-03-05 22:22
Modified
2025-02-13 17:14
Severity ?
EPSS score ?
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.
References
Impacted products
Vendor | Product | Version | |||||||
---|---|---|---|---|---|---|---|---|---|
▼ | Go standard library | net/http |
Version: 0 ≤ Version: 1.22.0-0 ≤ |
||||||
|
{ containers: { adp: [ { metrics: [ { cvssV3_1: { attackComplexity: "LOW", attackVector: "NETWORK", availabilityImpact: "NONE", baseScore: 4.3, baseSeverity: "MEDIUM", confidentialityImpact: "LOW", integrityImpact: "NONE", privilegesRequired: "LOW", scope: "UNCHANGED", userInteraction: "NONE", vectorString: "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N", version: "3.1", }, }, { other: { content: { id: "CVE-2023-45289", options: [ { Exploitation: "none", }, { Automatable: "no", }, { "Technical Impact": "partial", }, ], role: "CISA Coordinator", timestamp: "2024-03-06T16:34:47.460894Z", version: "2.0.3", }, type: "ssvc", }, }, ], providerMetadata: { dateUpdated: "2024-11-04T18:24:28.343Z", orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0", shortName: "CISA-ADP", }, title: "CISA ADP Vulnrichment", }, { providerMetadata: { dateUpdated: "2024-08-02T20:21:15.333Z", orgId: "af854a3a-2127-422b-91ae-364da2661108", shortName: "CVE", }, references: [ { tags: [ "x_transferred", ], url: "https://go.dev/issue/65065", }, { tags: [ "x_transferred", ], url: "https://go.dev/cl/569340", }, { tags: [ "x_transferred", ], url: "https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg", }, { tags: [ "x_transferred", ], url: "https://pkg.go.dev/vuln/GO-2024-2600", }, { tags: [ "x_transferred", ], url: "https://security.netapp.com/advisory/ntap-20240329-0006/", }, { tags: [ "x_transferred", ], url: "http://www.openwall.com/lists/oss-security/2024/03/08/4", }, ], title: "CVE Program Container", }, ], cna: { affected: [ { collectionURL: "https://pkg.go.dev", defaultStatus: "unaffected", packageName: "net/http", product: "net/http", programRoutines: [ { name: "isDomainOrSubdomain", }, { name: "Client.Do", }, { name: "Client.Get", }, { name: "Client.Head", }, { name: "Client.Post", }, { name: "Client.PostForm", }, { name: "Get", }, { name: "Head", }, { name: "Post", }, { name: "PostForm", }, ], vendor: "Go standard library", versions: [ { lessThan: "1.21.8", status: "affected", version: "0", versionType: "semver", }, { lessThan: "1.22.1", status: "affected", version: "1.22.0-0", versionType: "semver", }, ], }, { collectionURL: "https://pkg.go.dev", defaultStatus: "unaffected", packageName: "net/http/cookiejar", product: "net/http/cookiejar", programRoutines: [ { name: "isIP", }, { name: "Jar.Cookies", }, { name: "Jar.SetCookies", }, ], vendor: "Go standard library", versions: [ { lessThan: "1.21.8", status: "affected", version: "0", versionType: "semver", }, { lessThan: "1.22.1", status: "affected", version: "1.22.0-0", versionType: "semver", }, ], }, ], credits: [ { lang: "en", value: "Juho Nurminen of Mattermost", }, ], descriptions: [ { lang: "en", value: "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.", }, ], problemTypes: [ { descriptions: [ { description: "CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer", lang: "en", }, ], }, ], providerMetadata: { dateUpdated: "2024-05-01T17:09:39.339Z", orgId: "1bb62c36-49e3-4200-9d77-64a1400537cc", shortName: "Go", }, references: [ { url: "https://go.dev/issue/65065", }, { url: "https://go.dev/cl/569340", }, { url: "https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg", }, { url: "https://pkg.go.dev/vuln/GO-2024-2600", }, { url: "https://security.netapp.com/advisory/ntap-20240329-0006/", }, { url: "http://www.openwall.com/lists/oss-security/2024/03/08/4", }, ], title: "Incorrect forwarding of sensitive headers and cookies on HTTP redirect in net/http", }, }, cveMetadata: { assignerOrgId: "1bb62c36-49e3-4200-9d77-64a1400537cc", assignerShortName: "Go", cveId: "CVE-2023-45289", datePublished: "2024-03-05T22:22:30.306Z", dateReserved: "2023-10-06T17:06:26.221Z", dateUpdated: "2025-02-13T17:14:01.755Z", state: "PUBLISHED", }, dataType: "CVE_RECORD", dataVersion: "5.1", }