How I Discovered a Multi-Vector Attack Chain on a WordPress Site
A WordPress site had XML-RPC pingback enabled, allowing blind SSRF to internal addresses, and a forgotten PHP file in the uploads directory executed shell commands. An unauthenticated attacker could chain these to achieve blind remote code execution.
medium.com
Published on medium.com
“An unauthenticated attacker could achieve full remote code execution by chaining WordPress XML-RPC pingbacks with a forgotten command-execution file. No user interaction required.”
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 combination of an enabled XML-RPC pingback feature that permits outbound requests and a publicly accessible PHP file in the uploads directory that executes shell commands.
Impact
An unauthenticated attacker could achieve blind remote code execution, though output was not visible and the exploit relied on timing side-channels.
What the attacker needed
XML-RPC pingback enabled; A vulnerable PHP file in uploads; No authentication required
The fix
The report recommends disabling XML-RPC, blocking pingback, removing unknown PHP files under uploads, hardening upload permissions, enabling WAF rules for SSRF, and running a filesystem integrity scan.
How it was found
- Test XML-RPC pingback reachability by sending a pingback request to the site's xmlrpc.php.
- Probe internal addresses via pingback to confirm blind SSRF by observing response differences.
- Identify a local PHP file in the uploads directory that executes shell commands.
- Use timing-based tests with a sleep command to confirm blind command 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.
The site left a WordPress feature called XML-RPC pingback switched on, which lets outside servers ask the site to fetch a URL. The author used this to make the site contact internal addresses and a forgotten PHP file that ran commands, confirming execution by timing delays.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.