Rapid7 Vulnerability & Exploit Database

Supervisor XML-RPC Authenticated Remote Code Execution

Back to Search

Supervisor XML-RPC Authenticated Remote Code Execution

Disclosed
07/19/2017
Created
05/30/2018

Description

This module exploits a vulnerability in the Supervisor process control software, where an authenticated client can send a malicious XML-RPC request to supervisord that will run arbitrary shell commands on the server. The commands will be run as the same user as supervisord. Depending on how supervisord has been configured, this may be root. This vulnerability can only be exploited by an authenticated client, or if supervisord has been configured to run an HTTP server without authentication. This vulnerability affects versions 3.0a1 to 3.3.2.

Author(s)

  • Calum Hutton <c.e.hutton@gmx.com>

Platform

Linux

Architectures

x86, x64

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

;