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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
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
GitHub 6 repositories
-
lishang520/CVE-2022-24990 ★ 38 · Mar 20, 2022
CVE-2022-24990信息泄露+RCE 一条龙
-
0xf4n9x/CVE-2022-24990 ★ 12 · Mar 20, 2022
CVE-2022-24990 TerraMaster TOS unauthenticated RCE via PHP Object Instantiation
-
jsongmax/terraMaster-CVE-2022-24990 ★ 4 · Oct 17, 2022
-
VVeakee/CVE-2022-24990-POC ★ 4 · Mar 10, 2022
仅仅是poc,并不是exp
-
ZZ-SOCMAP/CVE-2022-24990 ★ 3 · Apr 12, 2022
TerraMaster TOS Unauthenticated Remote Command Execution(RCE) Vulnerability CVE-2022-24990
-
Jaky5155/CVE-2022-24990-TerraMaster-TOS--PHP- ★ 2 · Mar 8, 2022
CVE-2022-24990:TerraMaster TOS 通过 PHP 对象实例化执行未经身份验证的远程命令
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- TerraMaster TOS < 4.2.30 Server Information Disclosure http/cves/2022/CVE-2022-24990.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- https://forum.terra-master.com/en/viewforum.php?f=28
- https://www.broadcom.com/support/security-center/attacksignatures/detail?asid=33732
- https://github.com/0xf4n9x/CVE-2022-24990
- https://octagon.net/blog/2022/03/07/cve-2022-24990-terrmaster-tos-unauthenticated-remote-command-execution-via-php-object-instantiation/
- http://packetstormsecurity.com/files/172904/TerraMaster-TOS-4.2.29-Remote-Code-Execution.html