Bug 1874857 (CVE-2020-24553) - CVE-2020-24553 golang: default Content-Type setting in net/http/cgi and net/http/fcgi could cause XSS
Summary: CVE-2020-24553 golang: default Content-Type setting in net/http/cgi and net/h...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2020-24553
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1874858 1874859 1875785 1875786 1877800 1877801 1877802 1877828 1897181
Blocks: 1874860
TreeView+ depends on / blocked
 
Reported: 2020-09-02 12:51 UTC by Marian Rehak
Modified: 2021-12-02 04:18 UTC (History)
71 users (show)

Fixed In Version: go 1.15.1, go 1.14.8
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Go standard library packages before upstream versions 1.15 and 1.14.8. Both the net/http/cgi and net/http/fcgi packages use a default Content-Type response header value of "text/html", rather than "text/plain". This flaw allows an attacker to exploit this issue in applications using these packages by uploading crafted files, allowing a Cross-site Scripting attack (XSS). The highest threat from this vulnerability is to confidentiality and integrity.
Clone Of:
Environment:
Last Closed: 2020-12-15 22:18:50 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:5493 0 None None None 2020-12-15 17:06:24 UTC
Red Hat Product Errata RHSA-2021:0145 0 None None None 2021-01-14 13:38:59 UTC
Red Hat Product Errata RHSA-2021:0146 0 None None None 2021-01-14 16:30:45 UTC

Description Marian Rehak 2020-09-02 12:51:40 UTC
In Go versions prior to 1.15.1 and 1.14.8 if the Content-Type header of a Handler was not explicitly set the net/http/cgi and net/http/fcgi packages would default to “text/html”, which could cause a Cross-Site Scripting vulnerability if an attacker can control any part of the contents of a response.

Upstream Reference:

https://groups.google.com/g/golang-announce/c/8wqlSbkLdPs/m/UccMwBPUBAAJ?pli=1

Comment 1 Marian Rehak 2020-09-02 12:52:09 UTC
Created golang tracking bugs for this issue:

Affects: epel-all [bug 1874859]
Affects: fedora-all [bug 1874858]

Comment 7 Sam Fowler 2020-09-07 07:28:10 UTC
Upstream Patch:

https://go-review.googlesource.com/c/go/+/252179/

Comment 9 Sam Fowler 2020-09-08 09:15:05 UTC
Statement:

Multiple components in Red Hat OpenShift Container Platform are built with Go and use net/http, however none include the specific vulnerable packages net/http/cgi and net/http/fcgi. Red Hat OpenShift Container Platform is not affected by this flaw.

Comment 15 errata-xmlrpc 2020-12-15 17:06:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:5493 https://access.redhat.com/errata/RHSA-2020:5493

Comment 16 Product Security DevOps Team 2020-12-15 22:18:50 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-24553

Comment 17 errata-xmlrpc 2021-01-14 13:38:53 UTC
This issue has been addressed in the following products:

  Openshift Serverless 1 on RHEL 8

Via RHSA-2021:0145 https://access.redhat.com/errata/RHSA-2021:0145

Comment 18 errata-xmlrpc 2021-01-14 16:31:18 UTC
This issue has been addressed in the following products:

  Openshift Serveless 1.12

Via RHSA-2021:0146 https://access.redhat.com/errata/RHSA-2021:0146


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