VDB
Sign up
HIGH8.1

GO-2022-0761

Improper input validation in net/http and net/http/cgi

Quick fix

GO-2022-0761 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.6.3

Details

An input validation flaw in the CGI components allows the HTTP_PROXY environment variable to be set by the incoming Proxy header, which changes where Go by default proxies all outbound HTTP requests.

This environment variable is also used to set the outgoing proxy, enabling an attacker to insert a proxy into outgoing requests of a CGI program.

Read more about "httpoxy" here: https://httpoxy.org.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.6.3
Fixgo get stdlib@v1.6.3

References