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.
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.
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
- Search Shodan for exposed Werkzeug debuggers.
- Identify an IP address and port belonging to AddThis.
- Find the domain associated with that IP and port.
- 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.