Skip to content
RCE Write-up Intermediate

FusionPBX v4.4.8 authenticated Remote Code Execution (CVE-2019-15029)

An authenticated user could create a service with an arbitrary start command, which was later executed by the server via shell_exec when the service was started. This allowed remote code execution on the underlying operating system.

shells.systems

Published on shells.systems

FusionPBX can be used as a highly available single or domain based multi-tenant PBX, carrier grade switch, call center server, fax server, voip server, voicemail server, conference server, voice application server, appliance framework and more.

The author, on shells.systems

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An authenticated attacker could execute arbitrary commands on the server, leading to full compromise.

What the attacker needed

Authenticated user with service_add permission

The fix

The application should validate and sanitise service commands, or restrict service creation to trusted administrators, and avoid using shell_exec with user-controlled input.

How it was found

  1. Log in to FusionPBX.
  2. Create a new service with a malicious start command via service_edit.php.
  3. Retrieve the service ID from the services page.
  4. Send a GET request to services.php with the service ID and a=start to trigger the command.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The application lets users define services, including a command to start them. It stores that command and later runs it on the server without checking what it contains. So a logged-in user can make the server run any command they choose, taking over the machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.