How I got RCE In The World Largest Russian Company
A host belonging to the company exposed the Java Debug Wire Protocol on an unusual port, reachable from the internet. Using a public tool, the researcher showed that this debug service allowed remote code execution on the server.
In this writeup I will explain how I was able to find RCE in Mail.ru which is considered the world largest internet company, Before starting to hack I was wondering on how I should approach the target and what most people would miss in the program, they have a huge scope which means it should be something out there…
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 Java debug port was left enabled and exposed to the internet on a company host.
Impact
An attacker could run arbitrary code on the exposed server, which the text says belongs to the company's infrastructure rather than its main assets.
What the attacker needed
Internet-reachable host; Java debug port left open; public JDWP exploitation tool
How it was found
- Find the target's favicon hash and search for it on Shodan
- Review results page by page for hosts on unusual ports
- Find a host on port 8080 showing a default Nginx page
- Fuzz directories and find a publicly accessible static path
- Scan the discovered hosts with Nmap and find one exposing JDWP
- Use a public JDWP tool to demonstrate code 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.
Some Java programs can be started with a debugging feature switched on, which lets a developer attach a tool and run code inside the program. If that debugging port is reachable from the internet, anyone can attach to it and run their own code on the server. Here the researcher found such a port open on a company machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.