GO-2022-0520
Exposure of client IP addresses in net/http
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2022-32148
- Alias
- BIT-golang-2022-32148
Description
Client IP adresses may be unintentionally exposed via X-Forwarded-For headers. When httputil.ReverseProxy.ServeHTTP is called with a Request.Header map containing a nil value for the X-Forwarded-For header, ReverseProxy sets the client IP as the value of the X-Forwarded-For header, contrary to its documentation. In the more usual case where a Director function sets the X-Forwarded-For header value to nil, ReverseProxy leaves the header unmodified as expected.
Paquets affectés
| Paquet | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.17.12, introduced 1.18.0-0, fixed 1.18.4 |
Références
- https://go.dev/cl/412857 FIX
- https://go.googlesource.com/go/+/b2cc0fecc2ccd80e6d5d16542cc684f97b3a9c8a FIX
- https://go.dev/issue/53423 REPORT
- https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |