CVE-2022-24989

TerraMaster NAS through 4.2.30 allows remote WAN attackers to execute arbitrary code as root via the raidtype and diskstring parameters for PHP Object…

published August 20, 2023

CVSS
—
EPSS
32%
Percentile
98.3
In the wild
Unconfirmed
What it is

🚨 A single unsanitized input could let remote attackers execute arbitrary code on your TerraMaster NAS! 🤯 Think of it like a chef who lets patrons dictate the menu without checking their ingredients—imagine what could end up in your signature dish! 🍽️ An attacker could craft a specific request to the api.php endpoint, taking control of your NAS as root. This could lead to unauthorized access, data theft, or even total system compromise, leaving your vital data exposed and vulnerable.

Put simply

Think of it like a chef who lets patrons dictate the menu without checking their ingredients—imagine what could end up in your signature dish! 🍽️ This vulnerability arises because the raidtype and diskstring parameters in the API can be exploited to execute commands via PHP Object Instantiation. The lack of input sanitization when using popen means that shell metacharacters can be injected easily.

What to do

An attacker could craft a specific request to the api.php endpoint, taking control of your NAS as root. This could lead to unauthorized access, data theft, or even total system compromise, leaving your vital data exposed and vulnerable. To mitigate this risk, update your TerraMaster NAS to version 4.2.31 or higher immediately. Also, consider implementing additional input validation and limiting public access to sensitive APIs where possible. You've got this! With these steps, you'll secure your NAS and keep your data safe! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.31881 · 98.3th percentile
Published
2023-08-20T00:00Z
EPSS history
Timeline
  • 20 AUG 00:00Z
    TerraMaster NAS through 4.2.30 allows remote WAN attackers to execute arbitrary code as root via the raidtype and diskstring parameters for PHP Object…
    cvelistv5