Rapid7 Vulnerability & Exploit Database

FusionPBX Command exec.php Command Execution

Back to Search

FusionPBX Command exec.php Command Execution

Disclosed
11/02/2019
Created
11/14/2019

Description

This module uses administrative functionality available in FusionPBX to gain a shell. The Command section of the application permits users with `exec_view` permissions, or superadmin permissions, to execute arbitrary system commands, or arbitrary PHP code, as the web server user. This module has been tested successfully on FusionPBX version 4.4.1 on Ubuntu 19.04 (x64).

Author(s)

  • bcoles <bcoles@gmail.com>

Platform

Linux,PHP,Unix

Architectures

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

;