In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Improper Handling of Highly Compressed Data (Data Amplification) vulnerabilities in an interactive lesson.
Start learningUpgrade github.com/labstack/echo/v5/middleware to version 4.16.1 or higher.
github.com/labstack/echo/v5/middleware is a middleware package for echo.
Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the Decompress middleware. An attacker can exhaust memory or CPU resources by sending a small, compressed request that expands to a very large decoded body, especially when handlers read or bind the body. This is only exploitable if the Decompress middleware is enabled and no effective body limit is applied after decompression.
This vulnerability can be mitigated by disabling gzip request decompression on exposed routes, placing BodyLimit after Decompress so the application limit applies to decoded bytes, or applying suitable request deadlines and concurrency limits.