Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

FusionPBX Command exec.php Command Execution

Disclosed
Nov 2, 2019
Created
Nov 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

Platform

Linux,PHP,Unix

Architectures

php, cmd, x86, x64

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.