research
Marathon container orchestration instances were exposed on the internet with no authentication, so anyone who found them could create an application whose command runs on the host. The reporter used this to run a command as root and receive its output on their own listening server.
Published on omespino.com
Hi team I i’ve found that some of your Marathon intances are vulnerablte to RCE as root
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 Marathon web interface and API were exposed to the internet without any authentication, letting anyone submit applications that execute commands on the host.
What the attacker needed
Marathon instance reachable from the internet; No authentication on the Marathon UI/API
How it was found
- Search Shodan for Marathon instances using dorks such as the X-Marathon-Leader header.
- Open the Marathon dashboard and confirm the application list loads without authentication.
- Start a listener on your own server with netcat.
- Create a Marathon application through the API whose command sends the output of a shell command to that listener.
- Wait for the application to run and receive the command output, then delete the application.
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.
Marathon is a tool that starts and manages programs on servers. These servers were reachable from the internet and asked for no password, so anyone could tell them to run a program. The reporter told one to run a command that sent back the result, which showed they controlled the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.