TerraMaster TOS v4.1.24 RCE

Published on 16 Jun 2021
Vulnerability

In TerraMaster TOS, a dynamic class method invocation vulnerability may take place in include/exportUser.php.This may lead to code injection with root privileges. Due to the invalid parameter checking, an attacker can use the opt parameter to initiate a call to the exec method. To approach the method call and exploit this vulnerability, the vulnerable file needs multiple HTTP GET parameters to be supplied. Initially, the application includes a code file that autoloads relevant TOS software core classes.Based on the value of the GET parameter type, the application determines which operation is to be performed. It is likely to access vulnerable code if the value of the type variable isn’t 1 or 2.It is possible to initiate remote code execution as the exportUser.php does not have any authentication controls

Mitigation / Precaution

In order to patch this vulnerability, please install the official patch TerraMaster made available for supported, vulnerable instances.

Prathap
Written by
Co-founder, Director

Prathap has around 20 years of experience and has worked on various projects in leading companies like Hitachi, Toshiba, Schneider Electric, ABB, Panasonic, and MicroFuzzy. His expertise lies in architecting, designing, and developing secure projects covering various aspects of software development, processes, and methodology.

Experience the Beagle Security platform
Unlock one full penetration test and all Advanced plan features free for 14 days
4.8 on G2 • ISO 27001 certified
See How Beagle Security Works
No credit card • No setup required
Launch interactive demo