Skip to content

Instantly share code, notes, and snippets.

@denisse-dev
Created September 2, 2020 03:58
Show Gist options
  • Save denisse-dev/6aa411fea5fda69f5bd9f570e6879e91 to your computer and use it in GitHub Desktop.
Save denisse-dev/6aa411fea5fda69f5bd9f570e6879e91 to your computer and use it in GitHub Desktop.
ASA-202009-2
Subject: [ASA-202009-2] go: cross-site scripting
Arch Linux Security Advisory ASA-202009-2
=========================================
Severity: TBD
Date : 2020-09-02
CVE-ID : CVE-2020-24553
Package : go
Type : cross-site scripting
Remote : Yes
Link : https://security.archlinux.org/AVG-1215
Summary
=======
The package go before versions 1.15.1 and 1.14.8 is vulnerable to cross-site
scripting.
Resolution
==========
Upgrade to 1.15.1.
# pacman -Syu "go>=1.15.1-1"
The problem has been fixed upstream in versions 1.15.1 and 1.14.8.
Workaround
==========
None.
Description
===========
Go versions before 1.15.1 and 1.14.8 have improper Content-Type header
validation of Handlers when the Content-Type header was not explicitly set
causing the net/http/cgi and net/http/fcgi packages to default to “text/html”.
This can cause a Cross-Site Scripting vulnerability when an attacker can control
any part of the contents of a response.
Impact
======
References
==========
https://github.com/golang/go/issues/40928
https://www.redteam-pentesting.de/advisories/rt-sa-2020-004
https://groups.google.com/g/golang-announce/c/8wqlSbkLdPs/m/UccMwBPUBAAJ
https://github.com/golang/go/commit/eb07103a083237414145a45f029c873d57037e06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment