x/vulndb: potential Go vuln in github.com/gofiber/fiber/v2: GHSA-hg3g-gphw-5hhm · Issue #3706 · golang/vulndb · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the fiber.Ctx.BodyParser to parse into a struct with range values, a panic occurs when trying to parse a negative range index
Details
fiber.Ctx.BodyParser can map flat data to nested slices using key[idx]value syntax, however when idx is negative, it causes a panic instead of returning an error stating it cannot process the data.
Since this data is user-provided, this could lead to denial of service for anyone relying on this fiber.Ctx.BodyParser functionality
Reproducing
Take a simple GoFiberV2 server which returns a JSON encoded version of the Fo...
Advisory GHSA-hg3g-gphw-5hhm references a vulnerability in the following Go modules:
Description:
Summary
When using the
fiber.Ctx.BodyParser
to parse into a struct with range values, a panic occurs when trying to parse a negative range indexDetails
fiber.Ctx.BodyParser
can map flat data to nested slices usingkey[idx]value
syntax, however when idx is negative, it causes a panic instead of returning an error stating it cannot process the data.Since this data is user-provided, this could lead to denial of service for anyone relying on this
fiber.Ctx.BodyParser
functionalityReproducing
Take a simple GoFiberV2 server which returns a JSON encoded version of the Fo...
References:
Cross references:
See doc/quickstart.md for instructions on how to triage this report.
The text was updated successfully, but these errors were encountered: