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 applicationsUpgrade github.com/labstack/echo/v4/middleware to version 4.16.1 or higher.
github.com/labstack/echo/v4/middleware is a middleware package for echo.
Affected versions of this package are vulnerable to Incorrect Authorization in the Proxy process. An attacker can gain unauthorized access to protected resources by sending a WebSocket upgrade request that is rejected by the upstream, causing subsequent HTTP requests to bypass route-level access controls and middleware. This is only exploitable if a proxy route is accessible, the upstream rejects the upgrade without closing the connection, and the target resource on the upstream lacks independent authorization.
This vulnerability can be mitigated by rejecting WebSocket upgrade requests before they reach affected proxy routes, or by enforcing authorization independently at every upstream resource.