CVE-2023-36815: Github.com/labring/sealos Sealos Billing System Permission Control Vulnerability

HIGH
Advisory Identifier: GHSA-vpxf-q44g-w34w
CVSS 7.3
CWE-287 CWE-862
Published
Advisory Summary

CVE-2023-36815 is a HIGH (CVSS 7.3) sealos billing system permission control vulnerability (CWE-287: Improper Authentication) affecting Github.com/labring/sealos libraries in the Go ecosystem. The issue involves sealos billing system permission control defect. Remediation is available in the latest vendor maintenance releases.

CVE-2023-36815 at a Glance

CVE Identifier CVE-2023-36815
GHSA Identifier GHSA-vpxf-q44g-w34w
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-287: Improper Authentication
Affected Product Github.com/labring/sealos
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.3

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:R/S:U/C:H/I:H/A:N).

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

How to Fix CVE-2023-36815

To remediate this vulnerability, upgrade all affected Github.com/labring/sealos 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/labring/sealos fixed: Latest secure release
Upgrade github.com/labring/sealos to Latest secure 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/labring/sealos

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-36815, inspect your project dependencies for Github.com/labring/sealos:

inspect dependencies for github.com/labring/sealos

Analyze the terminal output to locate any version of Github.com/labring/sealos in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched 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/labring/sealos, 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 There is a permission flaw in the Sealos billing system, which allows users to control the recharge resource account. sealos. io/v1/Payment, resulting in the ability to recharge any amount of 1 RMB. ### Details The reason is that sealos is in arrears. Egg pain, we can't create a terminal anymore. Let's charge for it: Then it was discovered that the charging interface had returned all resource information. Unfortunately, based on previous vulnerability experience, the namespace of this custom resource is still under the current user's control and may have permission to correct it. ### PoC disable by publish ### Impact + sealos public cloud user + CWE-287 Improper Authentication

CVE-2023-36815 Affected Github.com/labring/sealos Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/labring/sealos
Go
≤ 4.2.0

References

Frequently Asked Questions

What is CVE-2023-36815?
CVE-2023-36815 is a security vulnerability in Github.com/labring/sealos involving Sealos billing system permission control defect under CWE-287: Improper Authentication.
Which Github.com/labring/sealos versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/labring/sealos.
What version fixes CVE-2023-36815?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/labring/sealos affected?
Yes, github.com/labring/sealos is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-36815?
CVE-2023-36815 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2023-36815?
CVE-2023-36815 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-2023-36815?
Run the dependency tree command: 'inspect dependencies for github.com/labring/sealos'. 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-vpxf-q44g-w34w",
  "modified" : "2023-07-03T18:38:23Z",
  "published" : "2023-06-30T20:36:55Z",
  "aliases" : [ "CVE-2023-36815" ],
  "summary" : "Sealos billing system permission control defect",
  "details" : "### Summary\n\nThere is a permission flaw in the Sealos billing system, which allows users to control the recharge resource account. sealos. io/v1/Payment, resulting in the ability to recharge any amount of 1 RMB.\n\n### Details\n\nThe reason is that sealos is in arrears. Egg pain, we can't create a terminal anymore. Let's charge for it:\n\nThen it was discovered that the charging interface had returned all resource information. Unfortunately, based on previous vulnerability experience, the namespace of this custom resource is still under the current user's control and may have permission to correct it.\n\n### PoC\ndisable by publish\n\n### Impact\n\n+ sealos public cloud user\n+ CWE-287 Improper Authentication",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/labring/sealos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "4.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/labring/sealos/security/advisories/GHSA-vpxf-q44g-w34w"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-36815"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/labring/sealos"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287", "CWE-862" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-06-30T20:36:55Z",
    "nvd_published_at" : "2023-07-03T18:15:09Z"
  }
}