GO-2022-1038

Source
https://pkg.go.dev/vuln/GO-2022-1038
Import Source
https://vuln.go.dev/ID/GO-2022-1038.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2022-1038
Aliases
Published
2022-10-06T16:42:43Z
Modified
2024-05-20T16:03:47Z
Summary
Incorrect sanitization of forwarded query parameters in net/http/httputil
Details

Requests forwarded by ReverseProxy include the raw query parameters from the inbound request, including unparsable parameters rejected by net/http. This could permit query parameter smuggling when a Go proxy forwards a parameter with an unparsable value.

After fix, ReverseProxy sanitizes the query parameters in the forwarded query when the outbound request's Form field is set after the ReverseProxy. Director function returns, indicating that the proxy has parsed the query parameters. Proxies which do not parse query parameters continue to forward the original query parameters unchanged.

References
Credits
    • Gal Goldstein (Security Researcher, Oxeye)
    • Daniel Abeles (Head of Research, Oxeye)

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.18.7
Introduced
1.19.0-0
Fixed
1.19.2

Ecosystem specific

{
    "imports": [
        {
            "path": "net/http/httputil",
            "symbols": [
                "ReverseProxy.ServeHTTP"
            ]
        }
    ]
}