Go Vulnerability Database
GO-2021-0107
Panic or authentication bypass in github.com/ecnepsnai/web
Details
Web Sockets do not execute any AuthenticateMethod methods which may be set, leading to a nil pointer dereference if the returned UserData pointer is assumed to be non-nil, or authentication bypass.
This issue only affects WebSockets with an AuthenticateMethod hook. Request handlers that do not explicitly use WebSockets are not vulnerable.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/ecnepsnai/web | From 1.4.0 before 1.5.2 (fixed in 1.5.2) |