Vulnerabilities in pkg:golang/github.com/KubeOperator/kubepi

PACKAGE
Advisory Identifier: GHSA-87f6-8gr7-pc6h
Advisory Summary

CVE-2023-37916 is a MODERATE (CVSS 6.5) kubepi may leak password hash vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Github.com/KubeOperator/kubepi libraries in the Go ecosystem. The issue involves kubepi may leak password hash of any user. Remediation is available by upgrading affected packages to version 1.6.5.

5 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/KubeOperator/kubepi

5 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-87f6-8gr7-pc6h CVE-2023-37916 MODERATE KubePi may leak password hash of any user
GHSA-757p-vx43-fp9r CVE-2023-37917 CRITICAL KubePi Privilege Escalation vulnerability
GHSA-v4w5-r2xc-7f8h CVE-2023-22479 HIGH KubePi session fixation attack allows an attacker to hijack a legitimate user session.
GHSA-gqx8-hxmv-c4v4 CVE-2023-22478 HIGH KubePi may allow unauthorized access to system API
GHSA-vjhf-8vqx-vqpq CVE-2023-22463 CRITICAL KubePi allows malicious actor to login with a forged JWT token via Hardcoded Jwtsigkeys

CVE-2023-37916 at a Glance

CVE Identifier CVE-2023-37916
GHSA Identifier GHSA-87f6-8gr7-pc6h
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Github.com/KubeOperator/kubepi
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:N/A:N).

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 None (I:N)
Availability None (A:N)

How to Fix CVE-2023-37916

To remediate this vulnerability, upgrade all affected Github.com/KubeOperator/kubepi 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/KubeOperator/kubepi fixed: 1.6.5
Upgrade github.com/KubeOperator/kubepi to 1.6.5
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/KubeOperator/kubepi

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-37916, inspect your project dependencies for Github.com/KubeOperator/kubepi:

inspect dependencies for github.com/KubeOperator/kubepi

Analyze the terminal output to locate any version of Github.com/KubeOperator/kubepi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.5), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Github.com/KubeOperator/kubepi, 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

### Summary http://kube.pi/kubepi/api/v1/users/search?pageNum=1&&pageSize=10 leak password of any user (including admin). This leads to password crack attack ### PoC https://drive.google.com/file/d/1ksdawJ1vShRJyT3wAgpqVmz-Ls6hMA7M/preview ### Impact - Leaking confidential information. - Can lead to password cracking attacks

CVE-2023-37916 Affected Github.com/KubeOperator/kubepi Versions

1 component(s)
Fixed Versions:
1.6.5
Product / Package Ecosystem Affected Versions Fixed Version
github.com/KubeOperator/kubepi
Go
< 1.6.5
1.6.5

References

Frequently Asked Questions

What is CVE-2023-37916?
CVE-2023-37916 is a security vulnerability in Github.com/KubeOperator/kubepi involving KubePi may leak password hash of any user under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Github.com/KubeOperator/kubepi versions are affected?
Affected versions include releases prior to 1.6.5 across affected packages: github.com/KubeOperator/kubepi.
What version fixes CVE-2023-37916?
Upgrading to 1.6.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/KubeOperator/kubepi affected?
Yes, github.com/KubeOperator/kubepi is affected in releases prior to 1.6.5. Upgrade your dependency to 1.6.5 or later.
What is the CVSS score of CVE-2023-37916?
CVE-2023-37916 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-37916?
CVE-2023-37916 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Go dependencies for CVE-2023-37916?
Run the dependency tree command: 'inspect dependencies for github.com/KubeOperator/kubepi'. 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-87f6-8gr7-pc6h",
  "modified" : "2023-07-21T20:18:09Z",
  "published" : "2023-07-21T20:18:09Z",
  "aliases" : [ "CVE-2023-37916" ],
  "summary" : "KubePi may leak password hash of any user",
  "details" : "### Summary\nhttp://kube.pi/kubepi/api/v1/users/search?pageNum=1&&pageSize=10 leak password of any user (including admin). This leads to password crack attack\n\n\n### PoC\nhttps://drive.google.com/file/d/1ksdawJ1vShRJyT3wAgpqVmz-Ls6hMA7M/preview\n\n### Impact\n- Leaking confidential information.\n- Can lead to password cracking attacks\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/KubeOperator/kubepi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/1Panel-dev/KubePi/security/advisories/GHSA-87f6-8gr7-pc6h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-37916"
  }, {
    "type" : "WEB",
    "url" : "https://drive.google.com/file/d/1ksdawJ1vShRJyT3wAgpqVmz-Ls6hMA7M/preview"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/1Panel-dev/KubePi"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/1Panel-dev/KubePi/releases/tag/v1.6.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-21T20:18:09Z",
    "nvd_published_at" : "2023-07-21T21:15:11Z"
  }
}