Skip to content
RCE Write-up Intermediate

RCE In AddThis

A publicly exposed Werkzeug debugger on addth.is:5000 allowed remote code execution. An attacker could exploit this to execute arbitrary code on the server.

whitehatnepal Follow

Published on web.archive.org

This vulnerability has been fixed as of July 20, 2016 and is shared with consent from the vendor. If you wish to share the information provided in the write up, provide credit for the original author or contact [email protected] for more info.

whitehatnepal, on web.archive.org

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 Werkzeug debugger was left enabled and publicly accessible on a production server.

What the attacker needed

Werkzeug debugger exposed publicly; No authentication required

The fix

The vulnerability was fixed by the vendor after being reported.

How it was found

  1. Search Shodan for exposed Werkzeug debuggers.
  2. Identify an IP address and port belonging to AddThis.
  3. Find the domain associated with that IP and port.
  4. Confirm the debugger is accessible at addth.is:5000.

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.

A debugger is a tool developers use to find and fix problems in their code. If it is left switched on and reachable from the internet, anyone can use it to run their own commands on the server. Here, a debug page was publicly accessible, letting an attacker take control of 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.

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.