ghsa-h5gf-cmm8-cg7c
Vulnerability from github
Published
2024-03-06 15:22
Modified
2024-03-12 15:14
Summary
CasaOS-UserService allows unauthorized access to any file
Details

Summary

http://demo.casaos.io/v1/users/image?path=/var/lib/casaos/1/avatar.png

Originally it was to get the url of the user's avatar, but the path filtering was not strict, making it possible to get any file on the system.

Details

Construct paths to get any file.

Such as the CasaOS user database, and furthermore can obtain system root privileges.

PoC

http://demo.casaos.io/v1/users/image?path=/var/lib/casaos/conf/../db/user.db

Impact

v0.4.6 all previous versions

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "Go",
        "name": "github.com/IceWhaleTech/CasaOS-UserService"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.4.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2024-24765"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-200"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2024-03-06T15:22:07Z",
    "nvd_published_at": "2024-03-06T18:15:46Z",
    "severity": "HIGH"
  },
  "details": "### Summary\n\nhttp://demo.casaos.io/v1/users/image?path=/var/lib/casaos/1/avatar.png\n\nOriginally it was to get the url of the user\u0027s avatar, but the path filtering was not strict, making it possible to get any file on the system.\n\n\n### Details\n\nConstruct paths to get any file.\n\nSuch as the CasaOS user database, and furthermore can obtain system root privileges.\n\n### PoC\n\nhttp://demo.casaos.io/v1/users/image?path=/var/lib/casaos/conf/../db/user.db\n\n### Impact\n\nv0.4.6 all previous versions\n",
  "id": "GHSA-h5gf-cmm8-cg7c",
  "modified": "2024-03-12T15:14:22Z",
  "published": "2024-03-06T15:22:07Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/IceWhaleTech/CasaOS-UserService/security/advisories/GHSA-h5gf-cmm8-cg7c"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-24765"
    },
    {
      "type": "WEB",
      "url": "https://github.com/IceWhaleTech/CasaOS-UserService/commit/3f4558e23c0a9958f9a0e20aabc64aa8fd51840e"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/IceWhaleTech/CasaOS-UserService"
    },
    {
      "type": "WEB",
      "url": "https://github.com/IceWhaleTech/CasaOS-UserService/releases/tag/v0.4.7"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "CasaOS-UserService allows unauthorized access to any file "
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…