Advisory

GO-2020-0004

Also known as: CVE-2020-36569, GHSA-hrm3-3xm6-x33h

Summary

Authentication bypass in github.com/nanobox-io/golang-nanoauth

Details

If any of the ListenAndServe functions are called with an empty token, token authentication is disabled globally for all listeners.

Also, a minor timing side channel was present allowing attackers with very low latency and able to make many requests to potentially recover the token.

Severity

Not rated by the source.

Dates

Published
2021-04-14 20:04 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/nanobox-io/golang-nanoauth

Go · All systems

Affected

  • introduced 0.0.0-20160722212129-ac0cc4484ad4, fixed 0.0.0-20200131131040-063a3fb69896 (semver)

Fixed versions

0.0.0-20200131131040-063a3fb69896

Fix

  • Fixed version 0.0.0-20200131131040-063a3fb69896
    go get github.com/nanobox-io/[email protected]

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