TerraMaster NAS 4.2.29 and earlier allows remote attackers to discover the administrative password by sending "User-Agent: TNAS" to module/a
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.
- Published
- Feb 7, 2023
- Updated
- Jun 17, 2026
- EPSS
- 83.0% · 100th percentile
- CWE
- CWE-306
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
85
Now
Patch today or shut off access.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 30 / 30 · Listed
- EPSS
- 25 / 30 · 83.0%
CISA SSVC decision
- Exploitation
- active
- Automatable
- yes
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
Actively exploited in the wild
CISA added this to its Known Exploited Vulnerabilities catalog on Feb 10, 2023. That signals real attacks, not theory.
Remediation deadline for government agencies: Mar 3, 2023.
Known to be used in ransomware campaigns.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| terra-master | terramaster operating system | cpe:2.3:o:terra-master:terramaster_operating_system |
| terra-master | f2-210 | cpe:2.3:h:terra-master:f2-210 |
| terra-master | f2-221 | cpe:2.3:h:terra-master:f2-221 |
| terra-master | f2-223 | cpe:2.3:h:terra-master:f2-223 |
| terra-master | f2-422 | cpe:2.3:h:terra-master:f2-422 |
| terra-master | f2-423 | cpe:2.3:h:terra-master:f2-423 |
| terra-master | f4-421 | cpe:2.3:h:terra-master:f4-421 |
| terra-master | f4-422 | cpe:2.3:h:terra-master:f4-422 |
| terra-master | f4-423 | cpe:2.3:h:terra-master:f4-423 |
| terra-master | f5-221 | cpe:2.3:h:terra-master:f5-221 |
| terra-master | f5-422 | cpe:2.3:h:terra-master:f5-422 |
| terra-master | t12-423 | cpe:2.3:h:terra-master:t12-423 |
and 18 more
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- terra-master terramaster operating systembefore 4.2.31
Same product
terra-master: all recordsOther highest-scoring records for the same primary product.
- CVE-2020-35665An unauthenticated command-execution vulnerability exists in TerraMaster TOS through 4.2.06 via shell metacharacters in the Event parameter 63This week
- CVE-2022-24989TerraMaster NAS through 4.2.30 allows remote WAN attackers to execute arbitrary code as root via the raidtype and diskstring parameters for 49Plan
- CVE-2018-13354System command injection in logtable.php in TerraMaster TOS version 3.1.03 allows attackers to execute system commands via the "Event" param46Plan
- CVE-2018-13350SQL injection in logtable.php in TerraMaster TOS version 3.1.03 allows attackers to execute SQL queries via the "Event" parameter.44Plan
- CVE-2018-13358System command injection in ajaxdata.php in TerraMaster TOS version 3.1.03 allows attackers to execute system commands via the "checkName" p42Plan
- CVE-2018-13338System command injection in ajaxdata.php in TerraMaster TOS version 3.1.03 allows attackers to execute system commands via the "username" pa42Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
No fix version is recorded for this entry. Check the references for vendor advisories.
Exploit status
Weaponized
A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.
Evidence
- Metasploit module ×1
- Nuclei detection template ×1
- Proof-of-concept repository on GitHub ×6
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Nuclei detection template | Nuclei template CVE-2022-24990 | — |
| Metasploit module | exploit/linux/http/terramaster_unauth_rce_cve_2022_24990TerraMaster TOS 4.2.29 or lower - Unauthenticated RCE chaining CVE-2022-24990 and CVE-2022-24989exploit | 2022-03-07 |
| Proof-of-concept repository on GitHub | stars:2 | 2022-03-08 |
| Proof-of-concept repository on GitHub | stars:4 | 2022-03-10 |
| Proof-of-concept repository on GitHub | stars:12 | 2022-03-20 |
| Proof-of-concept repository on GitHub | stars:38 | 2022-03-20 |
| Proof-of-concept repository on GitHub | stars:3 | 2022-04-12 |
| Proof-of-concept repository on GitHub | stars:4 | 2022-10-17 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Metasploit-338 d
- First PoC-337 d
- Published
- CISA KEV+2 d
- TodaySep 29, 2026+1330 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-306 · Missing Authentication for Critical FunctionCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvd-primary
Root cause
A function added for development or support ships to production without authentication. It often relies on the assumption that it is “only reachable from the internal network.”
The bug in code
The whole CWE-306 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
// Added for the support teamapp.post("/maintenance/reset", resetDevice);Fixed
if (config.maintenanceEnabled) { app.post( "/maintenance/reset", requireSession, requireRole("admin"), resetDevice );}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
No changes recorded on tracked fields yet. Score, KEV, exploit maturity and fix status changes appear here.
References
- forum.terra-master.com/en/viewforum.php?f=28
- www.broadcom.com/support/security-center/attacksignatures/detail?asid=33732
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24990
Vendor advisories and official records. Exploit/PoC links are deliberately left out.