Go Vulnerability Database
GO-2023-2052
IsFromLocal local address check can be circumvented in github.com/gofiber/fiber/v2
Details
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/gofiber/fiber/v2 | All versions before 2.49.2-0.20230906112033-b8c9ede6efa2 (fixed in 2.49.2-0.20230906112033-b8c9ede6efa2) |