CVE-2023-22479: Github.com/KubeOperator/kubepi KubePi Session Fixation Attack Allows Vulnerability

HIGH
Advisory Identifier: GHSA-v4w5-r2xc-7f8h
CVSS 7.5
CWE-384
Published
Advisory Summary

CVE-2023-22479 is a HIGH (CVSS 7.5) kubepi session fixation attack allows vulnerability (CWE-384: Session Fixation) affecting Github.com/KubeOperator/kubepi libraries in the Go ecosystem. The issue involves kubepi session fixation attack allows an attacker to hijack a legitimate user session.. Remediation is available by upgrading affected packages to version 1.6.4.

CVE-2023-22479 at a Glance

CVE Identifier CVE-2023-22479
GHSA Identifier GHSA-v4w5-r2xc-7f8h
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-384: Session Fixation
Affected Product Github.com/KubeOperator/kubepi
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix CVE-2023-22479

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.4
Upgrade github.com/KubeOperator/kubepi to 1.6.4
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-22479, 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.4), 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-384: Session Fixation, where authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions. 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 A session fixation attack allows an attacker to hijack a legitimate user session. The attack investigates a flaw in how the online application handles the session ID, especially the susceptible web application. ### Affected Version <= v1.6.3 ### Patches The vulnerability has been fixed in [v1.6.4](https://github.com/KubeOperator/KubePi/releases/tag/v1.6.4). https://github.com/KubeOperator/KubePi/commit/1e9c550356c1a425a742480efcf743d373e98dcb : A session fixation attack allows an attacker to hijack a legitimate user session. ### Workarounds It is recommended to upgrade the version to [v1.6.4](https://github.com/KubeOperator/KubePi/releases/tag/v1.6.4). ### For more information If you have any questions or comments about this advisory, please [open an issue](https://github.com/KubeOperator/KubePi/issues). This vulnerability is reported by [sachinh09](https://huntr.dev/users/sachinh09/) from [huntr.dev](https://huntr.dev/).

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

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

References

Frequently Asked Questions

What is CVE-2023-22479?
CVE-2023-22479 is a security vulnerability in Github.com/KubeOperator/kubepi involving KubePi session fixation attack allows an attacker to hijack a legitimate user session. under CWE-384: Session Fixation.
Which Github.com/KubeOperator/kubepi versions are affected?
Affected versions include releases prior to 1.6.4 across affected packages: github.com/KubeOperator/kubepi.
What version fixes CVE-2023-22479?
Upgrading to 1.6.4 (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.4. Upgrade your dependency to 1.6.4 or later.
What is the CVSS score of CVE-2023-22479?
CVE-2023-22479 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-22479?
CVE-2023-22479 is classified under CWE-384: Session Fixation (Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.).
How can I check Go dependencies for CVE-2023-22479?
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-v4w5-r2xc-7f8h",
  "modified" : "2023-07-21T18:02:01Z",
  "published" : "2023-01-09T21:57:10Z",
  "aliases" : [ "CVE-2023-22479" ],
  "summary" : "KubePi session fixation attack allows an attacker to hijack a legitimate user session.",
  "details" : "### Summary\nA session fixation attack allows an attacker to hijack a legitimate user session. The attack investigates a flaw in how the online application handles the session ID, especially the susceptible web application.\n\n### Affected Version\n<= v1.6.3\n\n### Patches\nThe vulnerability has been fixed in [v1.6.4](https://github.com/KubeOperator/KubePi/releases/tag/v1.6.4).\n\nhttps://github.com/KubeOperator/KubePi/commit/1e9c550356c1a425a742480efcf743d373e98dcb : A session fixation attack allows an attacker to hijack a legitimate user session.\n\n### Workarounds\nIt is recommended to upgrade the version to [v1.6.4](https://github.com/KubeOperator/KubePi/releases/tag/v1.6.4).\n\n### For more information\nIf you have any questions or comments about this advisory, please [open an issue](https://github.com/KubeOperator/KubePi/issues).\n\nThis vulnerability is reported by [sachinh09](https://huntr.dev/users/sachinh09/) from [huntr.dev](https://huntr.dev/).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/KubeOperator/kubepi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.6.3"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/1Panel-dev/KubePi/security/advisories/GHSA-v4w5-r2xc-7f8h"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/KubeOperator/KubePi/security/advisories/GHSA-v4w5-r2xc-7f8h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-22479"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/KubeOperator/KubePi/commit/1e9c550356c1a425a742480efcf743d373e98dcb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/KubeOperator/KubePi"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/KubeOperator/KubePi/releases/tag/v1.6.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-384" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-09T21:57:10Z",
    "nvd_published_at" : "2023-01-10T21:15:00Z"
  }
}