Skip to content
RCE Write-up Beginner

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.

Omar Espino Follow

Published on omespino.com

Hi team I i’ve found that some of your Marathon intances are vulnerablte to RCE as root

Omar Espino (@omespino), on omespino.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 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

  1. Search Shodan for Marathon instances using dorks such as the X-Marathon-Leader header.
  2. Open the Marathon dashboard and confirm the application list loads without authentication.
  3. Start a listener on your own server with netcat.
  4. Create a Marathon application through the API whose command sends the output of a shell command to that listener.
  5. 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.

More by Omar Espino

View all

15 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.