Red Hat VEX
RHVEX-CVE-2020-24553
golang: default Content-Type setting in net/http/cgi and net/http/fcgi could cause XSS
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | cpp | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | gcc | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | gcc-c++ | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | gcc-gfortran | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | gcc-gnat | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | gcc-go | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | gcc-objc | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | gcc-objc++ | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | gcc-plugin-devel | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | golang | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | golang-bin | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | golang-docs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | golang-misc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | golang-src | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | golang-tests | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | libasan | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libasan-static | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libatomic | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libatomic-static | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libgcc | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libgfortran | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libgfortran-static | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libgnat | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libgnat-devel | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libgnat-static | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libgo | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libgo-devel | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libgo-static | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libgomp | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libitm | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libitm-devel | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libitm-static | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libmudflap | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libmudflap-devel | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libmudflap-static | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libobjc | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libquadmath | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libquadmath-devel | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libquadmath-static | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libstdc++ | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libstdc++-devel | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libstdc++-docs | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libstdc++-static | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libtsan | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | libtsan-static | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2020-24553
- https://bugzilla.redhat.com/show_bug.cgi?id=1874857
- https://www.cve.org/CVERecord?id=CVE-2020-24553
- https://nvd.nist.gov/vuln/detail/CVE-2020-24553
- https://groups.google.com/forum/#!topic/golang-announce/8wqlSbkLdPs
- https://www.redteam-pentesting.de/en/advisories/rt-sa-2020-004/-inconsistent-behavior-of-gos-cgi-and-fastcgi-transport-may-lead-to-cross-site-scripting