GO-2020-0029 - Due to improper HTTP header santization, a malicious user can spoof their source IP address by setting…
Severity: info · Published 2021-04-14
Due to improper HTTP header santization, a malicious user can spoof their
source IP address by setting the X-Forwarded-For header. This may allow
a user to bypass IP based restrictions, or obfuscate their true source.
Yes. github.com/gin-gonic/gin (Go): upgrade to 0.0.0-20141229113116-0099840c98ae or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected?
Check whether you run github.com/gin-gonic/gin (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
github.com/gin-gonic/gin (Go): upgrade to 0.0.0-20141229113116-0099840c98ae or later
go get github.com/gin-gonic/gin@v0.0.0-20141229113116-0099840c98ae