xmlrpc.php allows SSRF!
The WordPress xmlrpc.php endpoint on the target site accepted a pingback.ping call that made the server send a request to an attacker-chosen external host. An attacker could use this to make the server reach internal or third-party destinations, though the report only demonstrates an outbound request to a collaborator server.
medium.com
Published on medium.com
During my recent bug bounty hunting journey, I encountered a potential SSRF (Server-Side Request Forgery) vulnerability in the xmlrpc.php file of the Wurth.es website. In this post, I will walk you through the vulnerability discovery process, its impact, and possible remediation steps.
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 pingback.ping method was left enabled and did not restrict which destinations the server could be told to contact.
Impact
The server could be made to send requests to arbitrary external hosts, which may allow probing of internal networks or other systems, though the report only shows a request to an external collaborator server.
What the attacker needed
Xmlrpc.php reachable; pingback.ping enabled; attacker-controlled listener
The fix
The pingback.ping method should be disabled or restricted so the server cannot be pointed at arbitrary destinations.
How it was found
- Send a request to the site's xmlrpc.php path.
- Change the method to POST and send an XML body listing available methods.
- Pick the pingback.ping method from the returned list.
- Modify the request so the source and target URLs point at a server you control.
- Send the request and watch your server for the incoming pingback request.
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.
Many websites run WordPress, and one of its files, xmlrpc.php, lets other sites talk to it. One feature, pingback, tells the site to fetch a link you name. If the site does not check where that link points, an attacker can make the server visit addresses it should not, which is called server-side request forgery (SSRF).
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.