Vulnerabilities in pkg:golang/github.com/brokercap/Bifrost

PACKAGE
Advisory Identifier: GHSA-mxrx-fg8p-5p5j
Advisory Summary

CVE-2022-39267 is a HIGH (CVSS 8.8) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Github.com/brokercap/Bifrost libraries in the Go ecosystem. The issue involves bifrost vulnerable to authentication check flaw that leads to authentication bypass. Remediation is available by upgrading affected packages to version 1.8.7-release.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/brokercap/Bifrost

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/brokercap/Bifrost. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-mxrx-fg8p-5p5j CVE-2022-39267 HIGH Bifrost vulnerable to authentication check flaw that leads to authentication bypass
GHSA-p6fh-xc6r-g5hw CVE-2022-39219 HIGH Brokercap Bifrost subject to authentication bypass when using HTTP basic authentication

CVE-2022-39267 at a Glance

CVE Identifier CVE-2022-39267
GHSA Identifier GHSA-mxrx-fg8p-5p5j
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-287: Improper Authentication
Affected Product Github.com/brokercap/Bifrost
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.8

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

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

How to Fix CVE-2022-39267

To remediate this vulnerability, upgrade all affected Github.com/brokercap/Bifrost 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/brokercap/Bifrost fixed: 1.8.7-release
Upgrade github.com/brokercap/Bifrost to 1.8.7-release
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/brokercap/Bifrost

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-39267, inspect your project dependencies for Github.com/brokercap/Bifrost:

inspect dependencies for github.com/brokercap/Bifrost

Analyze the terminal output to locate any version of Github.com/brokercap/Bifrost in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.7-release), 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/brokercap/Bifrost, 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

### Impact The admin and monitor user groups need to be authenticated by username and password. If we delete the X-Requested-With: XMLHttpRequest field in the request header,the authentication will be bypassed. ### Patches https://github.com/brockercap/Bifrost/pull/201 ### Workarounds Upgrade to the latest version

CVE-2022-39267 Affected Github.com/brokercap/Bifrost Versions

1 component(s)
Fixed Versions:
1.8.7-release
Product / Package Ecosystem Affected Versions Fixed Version
github.com/brokercap/Bifrost
Go
< 1.8.7-release
1.8.7-release

References

Frequently Asked Questions

What is CVE-2022-39267?
CVE-2022-39267 is a security vulnerability in Github.com/brokercap/Bifrost involving Bifrost vulnerable to authentication check flaw that leads to authentication bypass under CWE-287: Improper Authentication.
Which Github.com/brokercap/Bifrost versions are affected?
Affected versions include releases prior to 1.8.7-release across affected packages: github.com/brokercap/Bifrost.
What version fixes CVE-2022-39267?
Upgrading to 1.8.7-release (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/brokercap/Bifrost affected?
Yes, github.com/brokercap/Bifrost is affected in releases prior to 1.8.7-release. Upgrade your dependency to 1.8.7-release or later.
What is the CVSS score of CVE-2022-39267?
CVE-2022-39267 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-39267?
CVE-2022-39267 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-2022-39267?
Run the dependency tree command: 'inspect dependencies for github.com/brokercap/Bifrost'. 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-mxrx-fg8p-5p5j",
  "modified" : "2022-10-21T13:03:47Z",
  "published" : "2022-10-18T19:57:50Z",
  "aliases" : [ "CVE-2022-39267" ],
  "summary" : "Bifrost vulnerable to authentication check flaw that leads to authentication bypass",
  "details" : "### Impact\nThe admin and monitor user groups need to be authenticated by username and password. If we delete the X-Requested-With: XMLHttpRequest field in the request header,the authentication will be bypassed.\n\n### Patches\nhttps://github.com/brockercap/Bifrost/pull/201\n\n### Workarounds\nUpgrade to the latest version",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/brokercap/Bifrost"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.8.7-release"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/brokercap/Bifrost/security/advisories/GHSA-mxrx-fg8p-5p5j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39267"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/brockercap/Bifrost/pull/201"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/brokercap/Bifrost/commit/63da5c8eb7eb21639ea7ac199fe10b5e07b03a8a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/brokercap/Bifrost"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-10-18T19:57:50Z",
    "nvd_published_at" : "2022-10-19T13:15:00Z"
  }
}