GO-2023-2052

See a problem?
Source
https://pkg.go.dev/vuln/GO-2023-2052
Import Source
https://vuln.go.dev/ID/GO-2023-2052.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2023-2052
Aliases
Published
2023-09-12T17:31:22Z
Modified
2024-05-20T16:03:47Z
Summary
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.

References

Affected packages

Go / github.com/gofiber/fiber/v2

Package

Name
github.com/gofiber/fiber/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/gofiber/fiber/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.49.2-0.20230906112033-b8c9ede6efa2

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/gofiber/fiber/v2",
            "symbols": [
                "Ctx.IsFromLocal",
                "Ctx.isLocalHost"
            ]
        }
    ]
}