Rapid7 Vulnerability & Exploit Database

Serviio Media Server checkStreamUrl Command Execution

Back to Search

Serviio Media Server checkStreamUrl Command Execution

Disclosed
05/03/2017
Created
05/30/2018

Description

This module exploits an unauthenticated remote command execution vulnerability in the console component of Serviio Media Server versions 1.4 to 1.8 on Windows operating systems. The console service (on port 23423 by default) exposes a REST API which which does not require authentication. The 'action' API endpoint does not sufficiently sanitize user-supplied data in the 'VIDEO' parameter of the 'checkStreamUrl' method. This parameter is used in a call to cmd.exe resulting in execution of arbitrary commands. This module has been tested successfully on Serviio Media Server versions 1.4.0, 1.5.0, 1.6.0 and 1.8.0 on Windows 7.

Author(s)

  • Gjoko Krstic(LiquidWorm) <gjoko@zeroscience.mk>
  • bcoles <bcoles@gmail.com>

Platform

Windows

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

;