Skip to content
RCE Write-up Beginner

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.

ekenejosepha1 Follow

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.

Mr Smith Austin, on medium.com

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

  1. Enumerate subdomains and find a staging API host.
  2. Request scope expansion for the out-of-scope staging host and get approval.
  3. Discover endpoints including an admin shell page.
  4. Brute-force the login with a common password list until it succeeds.
  5. 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.

More by ekenejosepha1

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.