TerraMaster TOS administrative password disclosure via User-Agent header
CVE-2022-24990 is an information disclosure vulnerability in TerraMaster NAS devices running TOS 4.2.29 and earlier. An unauthenticated remote attacker can send a request with the HTTP header "User-Agent: TNAS" to the endpoint module/api.php?mobile/webNasIPS and obtain a response containing the administrative password in the PWD field. The issue is caused by exposure of sensitive credential data to an unauthenticated requester based on a trivially spoofable request header, allowing remote recovery of the admin password without prior authentication.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
This repository contains a Python exploit script (CVE-2022-24990.py) targeting TerraMaster TOS, exploiting CVE-2022-24990, an unauthenticated remote code execution vulnerability via PHP object instantiation. The script provides two main functionalities: (1) detection of vulnerable targets by querying the '/module/api.php?mobile/webNasIPS' endpoint and extracting necessary credentials, and (2) exploitation by sending a crafted request to '/module/api.php?mobile/createRaid' to upload a randomly named PHP webshell. The webshell allows arbitrary PHP code execution via HTTP POST requests. The script supports single-target and batch modes, and outputs successful targets to a file. The repository also includes a README with usage instructions and references. The exploit is operational, providing a working payload and automation for both detection and exploitation.
This repository contains a Python exploit script targeting TerraMaster TOS (CVE-2022-24990), which chains an information disclosure vulnerability with remote code execution (RCE). The main script, 'TerraMaster TOS 信息泄露漏洞+RCE.py', reads a list of target URLs from 'host.txt' and attempts to exploit the vulnerability by first leaking sensitive information via the '/module/api.php?mobile/webNasIPS' endpoint. If successful, it uses the leaked credentials to send a crafted request to '/module/api.php?mobile/createRaid', writing a PHP file ('vuln1.php') containing a phpinfo webshell to the target server. The exploit demonstrates successful RCE by confirming the presence of the webshell. The repository is structured with a single exploit script, a README, a license, and a sample 'host.txt' file. The exploit is operational and can be adapted to write arbitrary PHP code to the target.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.