From Recon to RCE: How I Scored My First Critical BugIntroduction
A .aspx page on a subdomain accepted user input and passed it directly to the operating system, allowing arbitrary command execution. An attacker could run commands on the server, leading to full system compromise.
medium.com
Published on medium.com
My name is Eslam, known as 0xEsso, and I work as an ethical hacker specializing in penetration testing. In this write-up, I’ll share the journey of how I discovered my first P1 (Critical) Remote Code Execution (RCE) bug through an OS command injection vulnerability in a public bug bounty program.
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 application passed user-supplied input directly to a system command without sanitisation or validation.
Impact
An attacker could execute arbitrary commands on the server, potentially leading to full system compromise.
What the attacker needed
Public bug bounty program; target domain in scope; no authentication needed
How it was found
- Use a search engine to find subdomains of the target domain that return HTTP 200.
- Visit the subdomain and note the login page.
- Fuzz directories and discover a CMS directory with a .aspx login page.
- Fuzz specifically for .aspx files and find a test page.
- Access the test page and enter a simple command to confirm 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.
This is a case where a web page let a visitor type something that the server then ran as a system command. Because the server did not check the input, someone could make it run any command they wanted, like listing files or taking control. This is called OS command injection.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.