Rapid7 Vulnerability & Exploit Database

Synology DiskStation Manager SLICEUPLOAD Remote Command Execution

Back to Search

Synology DiskStation Manager SLICEUPLOAD Remote Command Execution

Disclosed
10/31/2013
Created
05/30/2018

Description

This module exploits a vulnerability found in Synology DiskStation Manager (DSM) versions 4.x, which allows the execution of arbitrary commands under root privileges. The vulnerability is located in /webman/imageSelector.cgi, which allows to append arbitrary data to a given file using a so called SLICEUPLOAD functionality, which can be triggered by an unauthenticated user with a specially crafted HTTP request. This is exploited by this module to append the given commands to /redirect.cgi, which is a regular shell script file, and can be invoked with another HTTP request. Synology reported that the vulnerability has been fixed with versions 4.0-2259, 4.2-3243, and 4.3-3810 Update 1, respectively; the 4.1 branch remains vulnerable.

Author(s)

  • Markus Wulftange

Platform

Unix

Architectures

cmd

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/synology_dsm_sliceupload_exec_noauth
msf exploit(synology_dsm_sliceupload_exec_noauth) > show targets
    ...targets...
msf exploit(synology_dsm_sliceupload_exec_noauth) > set TARGET < target-id >
msf exploit(synology_dsm_sliceupload_exec_noauth) > show options
    ...show and set options...
msf exploit(synology_dsm_sliceupload_exec_noauth) > 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

;