Disclosing Froxlor V2.x Authenticated RCE as Root Vulnerability v
Froxlor allowed admin users to set a custom PHP-FPM restart command that was not properly sanitised, enabling an attacker with admin credentials to execute arbitrary commands as root. The attacker could transfer and run a reverse shell, gaining a root shell on the server.
Published on medium.com
A story of a vulnerability in Froxlor that allowed authenticated remote code execution as root.
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
Root cause
Likely the input sanitisation for the custom PHP-FPM restart command was incomplete, allowing command chaining without restricted characters.
Impact
An attacker with admin credentials could execute arbitrary commands as root, leading to full server compromise.
What the attacker needed
Admin credentials for Froxlor; ability to host a reverse shell script; wait up to 5 minutes for cron restart
How it was found
- Obtain admin credentials and log in to the Froxlor panel.
- Go to PHP -> PHP-FPM versions and set a custom PHP-FPM restart command that downloads a reverse shell script.
- Set a second command that executes the downloaded script.
- Go to System -> Settings, click PHP-FPM, disable and then enable it to trigger the restart command.
- Wait for the cron job to restart PHP-FPM (every 5 minutes) to execute the reverse shell.
- Receive a root shell on the server.
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.
Froxlor is a web hosting control panel. Administrators can configure a command that restarts the PHP-FPM service. The panel tried to block dangerous characters but missed a way to run two commands in sequence, so an admin could make the server download and run a malicious script as the root user, the most powerful account on the system.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.