Rapid7 Vulnerability & Exploit Database

rConfig install Command Execution

Back to Search

rConfig install Command Execution

Disclosed
10/28/2019
Created
11/07/2019

Description

This module exploits an unauthenticated command injection vulnerability in rConfig versions 3.9.2 and prior. The `install` directory is not automatically removed after installation, allowing unauthenticated users to execute arbitrary commands via the `ajaxServerSettingsChk.php` file as the web server user. This module has been tested successfully on rConfig version 3.9.2 on CentOS 7.7.1908 (x64).

Author(s)

  • mhaskar
  • bcoles <bcoles@gmail.com>

Platform

Linux,Unix

Architectures

cmd, 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/unix/webapp/rconfig_install_cmd_exec
msf exploit(rconfig_install_cmd_exec) > show targets
    ...targets...
msf exploit(rconfig_install_cmd_exec) > set TARGET < target-id >
msf exploit(rconfig_install_cmd_exec) > show options
    ...show and set options...
msf exploit(rconfig_install_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

;