$2,000 Bounty: Unauthenticated Remote Code Execution to Reverse Shell — A Real-World Example 💻💰
An admin panel was publicly accessible and its file upload feature accepted PHP files that were then executed by the server. An attacker could upload a malicious PHP script and run commands on the server, gaining a reverse shell.
Published on cybersecuritywriteups.com
As a cybersecurity enthusiast and bug bounty hunter, I always keep an eye out for high-impact vulnerabilities. Recently, I discovered an unauthenticated Remote Code Execution (RCE) vulnerability on a web application that allowed me to gain full server control with a reverse shell.
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 upload feature did not restrict file types and the server executed uploaded files.
Impact
An attacker could execute arbitrary commands on the server and gain a reverse shell, leading to full server compromise.
What the attacker needed
Publicly accessible admin panel; file upload feature accepting PHP files; uploaded files publicly accessible and executed
The fix
The vulnerability was fixed by the company after responsible disclosure.
How it was found
- Find a publicly accessible admin panel with a file upload feature.
- Upload a PHP file containing a reverse shell command.
- Start a listener on the attacker machine.
- Access the uploaded PHP file via its public URL to trigger execution.
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 upload feature let people put files on the server. The server then ran any PHP file placed there, so a file containing commands could be executed. This gave the attacker control of the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.