Skip to main content
Mallory
HighCISA KEVExploited in the wildPublic exploit

TerraMaster TOS administrative password disclosure via User-Agent header

IdentifiersCVE-2022-24990CWE-200

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.

Share:
For your environment

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.

ANALYST BRIEF

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.

Successful exploitation discloses the administrative password for the affected TerraMaster NAS. With valid admin credentials, an attacker can authenticate to the device's management interfaces and fully compromise the appliance, including changing configuration, accessing stored data, and potentially using administrative access as a stepping stone for further malicious activity. The provided content specifically supports password disclosure; any follow-on compromise derives from reuse of the exposed admin credentials.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, restrict access to the TerraMaster web interface and specifically to module/api.php from trusted management networks only, using firewall rules, VPN-only administration, or network segmentation. Disable direct internet exposure of the NAS management interface. Monitor logs and network telemetry for requests to module/api.php?mobile/webNasIPS, especially those containing the header "User-Agent: TNAS". As a precaution, rotate administrative credentials and review the device for unauthorized access.

Remediation

Patch, then assume compromise.

Upgrade TerraMaster TOS to a version newer than 4.2.29 that addresses CVE-2022-24990. Remove or restrict exposure of vulnerable NAS management interfaces to untrusted networks until patching is complete. Review whether the administrative password was exposed and rotate all affected credentials after remediation.
PUBLIC EXPLOITS

Exploits

2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).

VALID 2 / 3 TOTALView more in app
CVE-2022-24990MaturityPoCVerified exploit

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.

0xf4n9xDisclosed Mar 20, 2022pythonnetwork
CVE-2022-24990MaturityPoCVerified exploit

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.

lishang520Disclosed Mar 20, 2022pythonnetwork
EXPOSURE SURFACE

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.

VendorProductType
Terra-MaterTerramaster Operating Systemoperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

ACTIVITY FEED

Recent activity

4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence1

Every observed campaign linking this CVE to a named adversary.

Associated malware2

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity

Community discussion across Reddit, Mastodon, and other social sources.

TerraMaster TOS administrative password disclosure via User-Agent header (CVE-2022-24990) | Mallory