A flaw was found in Echo's Proxy middleware. When a client requests a WebSocket upgrade, the middleware establishes a direct network tunnel before verifying whether the upstream server accepted the upgrade. If the upstream server rejects the upgrade while keeping the connection alive, subsequent HTTP requests sent over that connection bypass Echo's routing and route-specific middleware. A remote attacker can exploit this flaw to gain unauthorized access to protected upstream resources that rely solely on Echo for access control.
Exploitability
AV:NAC:HPR:NUI:NScope
S:UImpact
C:HI:HA:N7.4/CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N