# GO-2020-0029 - Due to improper HTTP header santization, a malicious user can spoof their source IP address by setting…

Source: https://junglewise.ai/threats/go-2020-0029-due-to-improper-http-header-santization-a-malicious-user-62b88c8c  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-04-14  
License: CC BY 4.0 with a link back

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)](https://junglewise.ai/threats/technologies/github-com-gin-gonic-gin). Vendors: [Go](https://junglewise.ai/threats/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

  ```sh
  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

## Related threats

- [GO-2024-2955 - Gin mishandles a wildcard in the origin string in github.com/gin-contrib/cors](https://junglewise.ai/threats/cve-2019-25211-gin-mishandles-a-wildcard-at-the-end-of-an-origin-string)
- [GO-2023-1737 - Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin](https://junglewise.ai/threats/cve-2023-29401-gin-web-framework-does-not-properly-sanitize-filename-parameter)
- [Improper input validation in github.com/gin-gonic/gin](https://junglewise.ai/threats/cve-2023-26125-improper-input-validation-in-github-com-gin-gonic-gin)
- [GO-2020-0001 - Arbitrary log line injection in github.com/gin-gonic/gin](https://junglewise.ai/threats/cve-2020-36567-gin-s-default-logger-allows-unsanitized-input-that-can-allow)
- [GO-2021-0052 - Inconsistent interpretation of HTTP Requests in github.com/gin-gonic/gin](https://junglewise.ai/threats/cve-2020-28483-inconsistent-interpretation-of-http-requests-in-github-com-gin)
