Rapid7 Vulnerability & Exploit Database

TerraMaster TOS 4.2.06 or lower - Unauthenticated Remote Code Execution

Back to Search

TerraMaster TOS 4.2.06 or lower - Unauthenticated Remote Code Execution

Disclosed
12/12/2020
Created
06/10/2023

Description

This module exploits an unauthenticated remote code-execution vulnerability in TerraMaster TOS 4.2.06 and lower via shell metacharacters in the Event parameter at vulnerable endpoint `include/makecvs.php` during CSV creation. Any unauthenticated user can therefore execute commands on the system under the same privileges as the web application, which typically runs under root at the TerraMaster Operating System.

Author(s)

  • h00die-gr3y <h00die.gr3y@gmail.com>
  • IHTeam

Platform

Linux,Unix

Architectures

cmd, php, x64, x86, aarch64

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/http/terramaster_unauth_rce_cve_2020_35665
msf exploit(terramaster_unauth_rce_cve_2020_35665) > show targets
    ...targets...
msf exploit(terramaster_unauth_rce_cve_2020_35665) > set TARGET < target-id >
msf exploit(terramaster_unauth_rce_cve_2020_35665) > show options
    ...show and set options...
msf exploit(terramaster_unauth_rce_cve_2020_35665) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;