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 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
- Log in to FusionPBX.
- Create a new service with a malicious start command via service_edit.php.
- Retrieve the service ID from the services page.
- 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.