GO-2023-2052
IsFromLocal local address check can be circumvented in github.com/gofiber/fiber/v2
At a glance
- Published
- Updated
- CVE
- CVE-2023-41338
- Aliases
- GHSA-3q5p-3558-364f
Description
The Ctx.IsFromLocal function can incorrectly report a request as being sent from localhost when the request contains an X-Forwarded-For header containing a localhost IP address.
Affected packages
| Package | Versions |
|---|---|
| Go · github.com/gofiber/fiber/v2 | introduced 0, fixed 2.49.2-0.20230906112033-b8c9ede6efa2 |
References
- https://github.com/gofiber/fiber/security/advisories/GHSA-3q5p-3558-364f ADVISORY
- https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc FIX
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |