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.

Technologies: github.com/gin-gonic/gin (Go). Vendors: Go.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
Informational severity, published 14 April 2021.
Which products and versions are affected?
github.com/gin-gonic/gin (Go) SEMVER:introduced=0,fixed=0.0.0-20141229113116-0099840c98ae.
Is there a fix for This vulnerability?
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

Affected products

  • github.com/gin-gonic/gin (Go) SEMVER:introduced=0,fixed=0.0.0-20141229113116-0099840c98ae

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.