How I Earned $1,375 from a Remote Code Execution (RCE) Bug — A Bug Bounty Story
A forgotten staging subdomain exposed an admin shell endpoint protected only by a weak password, which the hunter guessed via brute force. The attacker could then run arbitrary server-side commands as the web server user.
Published on medium.com
As a bug bounty hunter, there’s nothing more thrilling than uncovering a critical vulnerability that leads to a Remote Code Execution (RCE). In this post, I’ll walk you through how I discovered an RCE vulnerability in a production system and bagged a $1,375 bounty for it.
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 a debug or admin endpoint was left enabled in production with a default or weak password and no rate limiting.
Impact
An attacker could run arbitrary commands on the staging server as the web user, though the hunter stopped at confirmation and did not exfiltrate data or pivot.
What the attacker needed
Out-of-scope host approved for testing; network access to the staging host; weak admin password
The fix
The endpoint was removed immediately, and the report suggested disabling it and adding proper authentication and rate limiting.
How it was found
- Enumerate subdomains and find a staging API host.
- Request scope expansion for the out-of-scope staging host and get approval.
- Discover endpoints including an admin shell page.
- Brute-force the login with a common password list until it succeeds.
- Run basic commands to confirm command execution without further exploitation.
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 web shell is a small script on a server that lets someone type commands and run them on that machine. Here, the login for that page used a very common password, so guessing it was easy. Once inside, the person could run commands as the web server's user, which is a serious problem.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.