Story Of My First RCE :)
A publicly exposed Tiny File Manager instance was reachable with default credentials, allowing the author to log in and upload a PHP shell. The attacker could then run arbitrary commands on the server.
Published on medium.com
After I did all this, I found almost 30,000 domains, 99% of which belonged to that company. So Started Hunting
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 Tiny File Manager deployment kept its default credentials and allowed PHP file uploads, so anyone could log in and upload executable code.
Impact
An attacker could execute arbitrary commands on the server, leading to full compromise of that host.
What the attacker needed
Tiny File Manager exposed on the internet; Default credentials unchanged; PHP file uploads allowed
How it was found
- Find a PHP-based domain among the organisation's assets.
- Run directory discovery and locate tinyfilemanager.php.
- Log in using the default credentials.
- Upload a PHP shell through the file manager.
- Run commands via the uploaded shell.
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.
A file manager web app was left online with its factory default username and password. Anyone who found the page could log in, upload a small script that runs commands, and take control of the server. This is like leaving a spare key under the doormat.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.