{
  "id": "CVE-2022-24990",
  "url": "https://poc.griffinguard.io/cve/CVE-2022-24990",
  "published_at": "2023-02-07T00:00:00Z",
  "title": "TerraMaster OS Remote Command Execution Vulnerability",
  "vendor": "TerraMaster",
  "product": "TerraMaster OS",
  "cvss": {
    "score": 9.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2023-02-10",
    "known_ransomware_campaign_use": "Known",
    "days_after_publication": 3
  },
  "first_poc": {
    "created_at": "2022-03-08T01:28:32Z",
    "first_seen_at": "2026-11-14T10:26:36.149Z",
    "days_after_publication": -335.9,
    "repo": "Jaky5155/CVE-2022-24990-TerraMaster-TOS--PHP-",
    "source": "github"
  },
  "poc_repo_count": 6,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": {
    "category": "NAS / storage",
    "confidence": "high",
    "reason": "known edge product: TerraMaster TerraMaster OS TerraMaster OS Remote Command"
  },
  "description": "TerraMaster NAS 4.2.29 and earlier allows remote attackers to discover the administrative password by sending \"User-Agent: TNAS\" to module/api.php?mobile/webNasIPS and then reading the PWD field in the response.",
  "cwe": "CWE-306",
  "cvss_by_source": {
    "cisa-adp": 9.8
  },
  "repos": [
    {
      "repo": "Jaky5155/CVE-2022-24990-TerraMaster-TOS--PHP-",
      "url": "https://github.com/Jaky5155/CVE-2022-24990-TerraMaster-TOS--PHP-",
      "created_at": "2022-03-08T01:28:32Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-02-20T01:43:15Z"
    },
    {
      "repo": "VVeakee/CVE-2022-24990-POC",
      "url": "https://github.com/VVeakee/CVE-2022-24990-POC",
      "created_at": "2022-03-10T03:16:04Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-06-10T23:34:59Z"
    },
    {
      "repo": "0xf4n9x/CVE-2022-24990",
      "url": "https://github.com/0xf4n9x/CVE-2022-24990",
      "created_at": "2022-03-20T05:15:16Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z",
      "stars": 12,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-07-06T12:36:42Z"
    },
    {
      "repo": "lishang520/CVE-2022-24990",
      "url": "https://github.com/lishang520/CVE-2022-24990",
      "created_at": "2022-03-20T05:21:08Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 38,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-01-29T13:15:34Z"
    },
    {
      "repo": "ZZ-SOCMAP/CVE-2022-24990",
      "url": "https://github.com/ZZ-SOCMAP/CVE-2022-24990",
      "created_at": "2022-04-12T02:45:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-01-20T14:42:00Z"
    },
    {
      "repo": "antx-code/CVE-2022-24990",
      "url": "https://github.com/antx-code/CVE-2022-24990",
      "created_at": "2022-04-12T02:45:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-01-20T14:42:00Z"
    },
    {
      "repo": "jsongmax/terraMaster-CVE-2022-24990",
      "url": "https://github.com/jsongmax/terraMaster-CVE-2022-24990",
      "created_at": "2022-10-17T07:54:13Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-08-20T09:01:28Z"
    }
  ],
  "remediation": null,
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/terramaster_unauth_rce_cve_2022_24990.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: TerraMaster TOS 4.2.29 or lower - Unauthenticated RCE chaining CVE-2022-24990 and CVE-2022-24989 (exploit/linux/http/terramaster_unauth_rce_cve_2022_24990)",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-24990.yaml",
      "source": "nuclei",
      "title": "nuclei template: TerraMaster TOS \u003c 4.2.30 Server Information Disclosure",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/module/api.php",
      "query_markers": [
        "mobile/webNasIPS=",
        "mobile/createRaid="
      ],
      "headers": [
        {
          "name": "Authorization",
          "value": "$1$2kc1Zqe8$gi6hkBlDDDFHpG3RkZtws1"
        },
        {
          "name": "Signature",
          "value": "473a6d90ede9392eebd8a7995a0471fe"
        },
        {
          "name": "Timestamp",
          "value": "1642335373"
        }
      ],
      "body_markers": [
        "raidtype=;echo '\u003c?php @eval({var}[\"",
        "diskstring=XXXX",
        "raidtype=;id\u003e/tmp/a.txt;",
        "raidtype=;echo \"\u003c?php phpinfo();?\u003e\"\u003evuln1.php"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8080
      ],
      "user_agents": [
        "TNAS"
      ],
      "protocol": "http",
      "repos": [
        "0xf4n9x/CVE-2022-24990",
        "Jaky5155/CVE-2022-24990-TerraMaster-TOS--PHP-",
        "lishang520/CVE-2022-24990"
      ],
      "repo_count": 3,
      "confidence": 0.7,
      "evidence": [
        "0xf4n9x/CVE-2022-24990/CVE-2022-24990.py:79",
        "Jaky5155/CVE-2022-24990-TerraMaster-TOS--PHP-/POC.md:7",
        "lishang520/CVE-2022-24990/TerraMaster TOS 信息泄露漏洞+RCE.py:60"
      ]
    },
    {
      "method": "GET",
      "path_template": "/module/api.php",
      "query_markers": [
        "mobile/webNasIPS="
      ],
      "ports": [
        8080
      ],
      "user_agents": [
        "TNAS"
      ],
      "protocol": "http",
      "repos": [
        "0xf4n9x/CVE-2022-24990",
        "lishang520/CVE-2022-24990"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "0xf4n9x/CVE-2022-24990/CVE-2022-24990.py:49",
        "lishang520/CVE-2022-24990/TerraMaster TOS 信息泄露漏洞+RCE.py:39"
      ]
    }
  ],
  "rules": []
}
