GO-2020-0004

Source
https://pkg.go.dev/vuln/GO-2020-0004
Import Source
https://vuln.go.dev/ID/GO-2020-0004.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2020-0004
Aliases
Published
2021-04-14T20:04:52Z
Modified
2024-05-20T16:03:47Z
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2020-0004"
}
References
Credits
    • @bouk

Affected packages

Go / github.com/nanobox-io/golang-nanoauth

Package

Name
github.com/nanobox-io/golang-nanoauth
View open source insights on deps.dev
Purl
pkg:golang/github.com/nanobox-io/golang-nanoauth

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-20160722212129-ac0cc4484ad4
Fixed
0.0.0-20200131131040-063a3fb69896

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/nanobox-io/golang-nanoauth",
            "symbols": [
                "Auth.ListenAndServe",
                "Auth.ListenAndServeTLS",
                "Auth.ServeHTTP",
                "ListenAndServe",
                "ListenAndServeTLS"
            ]
        }
    ]
}