Turning a WordPress API into a DDoS Cannon: The XML-RPC Amplifica
The legacy XML-RPC endpoint on a WordPress site supports a batch method that lets one small request trigger many expensive authentication attempts. An attacker could send a few such requests to exhaust server workers and database connections, causing an application-layer denial of service.
If you are a web developer, there is a very high chance you have ignored xmlrpc.php.
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 legacy XML-RPC system.multicall method allows many expensive authentication operations to be bundled into one small request without adequate rate limiting or throttling.
Impact
A small number of requests could exhaust database connections and PHP workers, causing 502 errors and denying service to legitimate users; the text notes that WAFs and rate limiters that only count requests would not see the internal amplification.
What the attacker needed
XML-RPC enabled on the target; No effective rate limiting on xmlrpc.php; Network access to the endpoint
The fix
XML-RPC should be disabled entirely if it is not actively used, for example by blocking xmlrpc.php at the web server or with a plugin; if it must stay, rate-limit requests, disable system.multicall and enforce authentication throttling.
How it was found
- Craft an XML-RPC request using system.multicall that repeats wp.getUsersBlogs with a fake username and password.
- Send the single request to the target's xmlrpc.php endpoint.
- Observe the response time and CPU spike compared with a normal request.
- Repeat the request at a modest rate to exhaust backend workers and database connections.
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.
WordPress has an old feature called XML-RPC that lets programs talk to the site. It includes a batch mode where one request can ask the server to do many login checks at once, and each check is deliberately slow. Because the request is tiny but the work is large, a few requests can tie up the server so real visitors cannot get through.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.