Skip to content

CVE-2021-4236 Panic or authentication bypass in github.com/ecnepsnai/web

CriticalCVSS 9.8 EPSS 1.2%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total

Description

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
ecnepsnai github.com/ecnepsnai/web(Go) >= 1.4.0, < 1.5.2 1.5.2 Fixed
web project web >= 1.4.0, < 1.5.2 1.5.2 Fixed

Affected products

ProductAffected versionsFixed in
ecnepsnai github.com/ecnepsnai/web(Go) >= 1.4.0, < 1.5.2 1.5.2
web project web >= 1.4.0, < 1.5.2 1.5.2

References