FreeBSD : go -- net/http/cgi, net/http/fcgi: XSS (XSS) when Content-Type is not specified (67b050ae-ec82-11ea-9071-10c37b4ac2ea)

medium Nessus Plugin ID 140135

Language:

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

The Go project reports :

When a Handler does not explicitly set the Content-Type header, both CGI implementations default to 'text/html'. If an attacker can make a server generate content under their control (e.g. a JSON containing user data or an uploaded image file) this might be mistakenly returned by the server as 'text/html'. If a victim visits such a page they could get the attacker's code executed in the context of the server origin. If an attacker can make a server generate content under their control (e.g. a JSON containing user data or an uploaded image file) this might be mistakenly returned by the server as 'text/html'. If a victim visits such a page they could get the attacker's code executed in the context of the server origin.

Solution

Update the affected packages.

See Also

https://github.com/golang/go/issues/40928

http://www.nessus.org/u?7ea47eff

Plugin Details

Severity: Medium

ID: 140135

File Name: freebsd_pkg_67b050aeec8211ea907110c37b4ac2ea.nasl

Version: 1.4

Type: local

Published: 9/2/2020

Updated: 2/22/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.8

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.4

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2020-24553

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:go, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 9/1/2020

Vulnerability Publication Date: 8/20/2020

Reference Information

CVE: CVE-2020-24553