Advisory

GO-2021-0107

Also known as: CVE-2021-4236, GHSA-5gjg-jgh4-gppm, GHSA-jpgg-cp2x-qrw3

Summary

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.

Severity

Not rated by the source.

Dates

Published
2021-07-28 18:08 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/ecnepsnai/web

Go · All systems

Affected

  • introduced 1.4.0, fixed 1.5.2 (semver)

Fixed versions

1.5.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences