How One RCE Led to Seven Critical Vulnerabilities Across the Same
The author found a known remote code execution vulnerability on one website and then confirmed the same issue on six other websites belonging to the same organisation. An attacker could run commands on the servers and access source code and configuration files.
It’s been a while since I shared one of my bug bounty stories. Over the past few months, I relocated to Hyderabad for work and spent most of my time adapting to a new routine, learning new technologies, exploring AI-assisted security research, and sharpening my application security skills.
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 organisation reused the same vulnerable deployment across multiple websites, and the specific endpoint had a known remote code execution flaw under certain conditions.
Impact
An attacker could execute commands on the server, browse application source code, inspect configuration files, and review database connection details; the same vulnerability affected seven websites.
What the attacker needed
Known vulnerable endpoint; network access to the target
The fix
The vulnerabilities were promptly addressed by the organisation after responsible disclosure.
How it was found
- Run reconnaissance to collect endpoints and JavaScript files.
- Notice a familiar endpoint and research old write-ups to identify a known RCE.
- Craft and send a request to the endpoint and see the output 'www-data'.
- Set up a listener and modify the payload to get a reverse shell.
- Verify access by browsing source code and configuration files without modifying anything.
- Repeat the same validation on other websites owned by the organisation.
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.
Remote code execution means an attacker can make the server run their own commands, like typing into a terminal on someone else's computer. Here the author found a known weakness in a web endpoint that let them run a simple command and see the server's user name, then get a reverse shell (a connection back to their own machine) to explore 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.