This module exploits an unauthenticated remote code execution vulnerability in TerraMaster TOS 4.2.29 and lower by chaining two existing vulnerabilities, CVE-2022-24990 "Leaking sensitive information" and CVE-2022-24989, "Authenticated remote code execution". Exploiting vulnerable endpoint `api.php?mobile/webNasIPS` leaking sensitive information such as admin password hash and mac address, the attacker can achieve unauthenticated access and use another vulnerable endpoint `api.php?mobile/createRaid` with POST parameters `raidtype` and `diskstring` to execute remote code as root on TerraMaster NAS devices.
Exploit database
Vulnerability
CVE-2022-24990
Vulnerability details
- Score
- 9.8
- Severity
- critical
CVSS 3.1 · CISA-ADP
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDescription
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.
CVE ProgramExploit source choices
8 sourcesTerraMaster TOS 4.2.29 or lower - Unauthenticated RCE chaining CVE-2022-24990 and CVE-2022-24989
2022-03-07terramaster_unauth_rce_cve_2022_24990.rb
arpsyndicate/kenzer-templates
essential templates for kenzer [DEPRECATED]
2020-09-185,308 files · 118 stars
lishang520/cve-2022-24990
CVE-2022-24990信息泄露+RCE 一条龙
2022-03-204 files · 38 stars
0xf4n9x/cve-2022-24990
CVE-2022-24990 TerraMaster TOS unauthenticated RCE via PHP Object Instantiation
2022-03-204 files · 12 stars
jsongmax/terramaster-cve-2022-24990
jsongmax/terramaster-cve-2022-24990 source repository
2022-10-175 files · 4 stars
vveakee/cve-2022-24990-poc
仅仅是poc,并不是exp
2022-03-104 files · 4 stars
zz-socmap/cve-2022-24990
TerraMaster TOS Unauthenticated Remote Command Execution(RCE) Vulnerability CVE-2022-24990
2022-04-125 files · 3 stars
d4n-sec/d4n-sec.github.io
Generated personal blog
2026-11-06385 files · 0 stars