Vulnerabilities in pkg:golang/github.com/nanobox-io/golang-nanoauth

PACKAGE
Advisory Identifier: GHSA-hrm3-3xm6-x33h
Advisory Summary

CVE-2020-36569 is a CRITICAL (CVSS 9.1) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Github.com/nanobox io/golang nanoauth libraries in the Go ecosystem. The issue involves golang-nanoauth authentication bypass vulnerability. Remediation is available by upgrading affected packages to version 0.0.0-20200131131040-063a3fb69896.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/nanobox-io/golang-nanoauth

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/nanobox-io/golang-nanoauth. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-hrm3-3xm6-x33h CVE-2020-36569 CRITICAL golang-nanoauth authentication bypass vulnerability

CVE-2020-36569 at a Glance

CVE Identifier CVE-2020-36569
GHSA Identifier GHSA-hrm3-3xm6-x33h
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-287: Improper Authentication
Affected Product Github.com/nanobox io/golang nanoauth
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2020-36569

To remediate this vulnerability, upgrade all affected Github.com/nanobox io/golang nanoauth dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/nanobox-io/golang-nanoauth fixed: 0.0.0-20200131131040-063a3fb69896
Upgrade github.com/nanobox-io/golang-nanoauth to 0.0.0-20200131131040-063a3fb69896
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/nanobox-io/golang-nanoauth

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-36569, inspect your project dependencies for Github.com/nanobox io/golang nanoauth:

inspect dependencies for github.com/nanobox-io/golang-nanoauth

Analyze the terminal output to locate any version of Github.com/nanobox io/golang nanoauth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20200131131040-063a3fb69896), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Github.com/nanobox io/golang nanoauth, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Authentication is globally bypassed in github.com/nanobox-io/golang-nanoauth between v0.0.0-20160722212129-ac0cc4484ad4 and v0.0.0-20200131131040-063a3fb69896 if ListenAndServe is called with an empty token.

CVE-2020-36569 Affected Github.com/nanobox io/golang nanoauth Versions

1 component(s)
Fixed Versions:
0.0.0-20200131131040-063a3fb69896
Product / Package Ecosystem Affected Versions Fixed Version
github.com/nanobox-io/golang-nanoauth
Go
≥ 0.0.0-20160722212129-ac0cc4484ad4
< 0.0.0-20200131131040-063a3fb69896
0.0.0-20200131131040-063a3fb69896

References

Frequently Asked Questions

What is CVE-2020-36569?
CVE-2020-36569 is a security vulnerability in Github.com/nanobox io/golang nanoauth involving golang-nanoauth authentication bypass vulnerability under CWE-287: Improper Authentication.
Which Github.com/nanobox io/golang nanoauth versions are affected?
Affected versions include releases prior to 0.0.0-20200131131040-063a3fb69896 across affected packages: github.com/nanobox-io/golang-nanoauth.
What version fixes CVE-2020-36569?
Upgrading to 0.0.0-20200131131040-063a3fb69896 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/nanobox-io/golang-nanoauth affected?
Yes, github.com/nanobox-io/golang-nanoauth is affected in releases prior to 0.0.0-20200131131040-063a3fb69896. Upgrade your dependency to 0.0.0-20200131131040-063a3fb69896 or later.
What is the CVSS score of CVE-2020-36569?
CVE-2020-36569 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2020-36569?
CVE-2020-36569 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Go dependencies for CVE-2020-36569?
Run the dependency tree command: 'inspect dependencies for github.com/nanobox-io/golang-nanoauth'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hrm3-3xm6-x33h",
  "modified" : "2023-01-10T15:49:55Z",
  "published" : "2022-12-28T00:30:23Z",
  "aliases" : [ "CVE-2020-36569" ],
  "summary" : "golang-nanoauth authentication bypass vulnerability",
  "details" : "Authentication is globally bypassed in github.com/nanobox-io/golang-nanoauth between v0.0.0-20160722212129-ac0cc4484ad4 and v0.0.0-20200131131040-063a3fb69896 if ListenAndServe is called with an empty token.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/nanobox-io/golang-nanoauth"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.0.0-20160722212129-ac0cc4484ad4"
      }, {
        "fixed" : "0.0.0-20200131131040-063a3fb69896"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-36569"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nanobox-io/golang-nanoauth/pull/5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nanobox-io/golang-nanoauth/commit/063a3fb69896acf985759f0fe3851f15973993f3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nanobox-io/golang-nanoauth"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2020-0004"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287", "CWE-305" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-30T18:54:51Z",
    "nvd_published_at" : "2022-12-27T22:15:00Z"
  }
}