Skip to content
SSRF Write-up Beginner

️ How I Earned $$ by Exploiting an XML-RPC SSRF in a WordPress Site

A WordPress site left its XML-RPC interface reachable without authentication, so anyone could list the available methods and use the pingback method to make the server try to connect to internal addresses. The author claims this could support internal port scanning and access to cloud metadata, though the one attempt shown was rejected by backlink validation.

bhushan5 Follow

Published on medium.com

While testing for common vulnerabilities in WordPress installations, I found an exposed XML-RPC interface that enabled me to perform method enumeration and server-side request forgery (SSRF) — resulting in a $$$ bounty. In this blog, I’ll explain how this happened and why this issue is more dangerous than it seems.

Bhushan Patil, on medium.com

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 XML-RPC endpoint was left enabled for unauthenticated users, exposing methods such as pingback.ping that make the server fetch attacker-supplied URLs.

Impact

The server could be made to reach internal services, which may allow internal port scanning and, in cloud environments, access to instance metadata; the demonstrated request itself failed backlink validation, so the deeper impact is described as potential rather than proven.

What the attacker needed

XML-RPC left enabled; no authentication required; network path from server to target

The fix

XML-RPC should be disabled when unused, or dangerous methods blocked and access restricted to authenticated users.

How it was found

  1. Send an XML-RPC request calling the method that lists all supported methods.
  2. Read the response to see which methods are enabled, including the pingback method.
  3. Send a pingback request pointing at an internal address and port.
  4. Observe the error response, which shows the server tried to connect to that internal address.

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 a built-in remote-control feature called XML-RPC that lets other software talk to the site. If it is left switched on for everyone, a stranger can ask the site to fetch a web address of their choosing, including addresses on the site's own private network that outsiders cannot normally reach. That trick is called server-side request forgery: the server is made to send the request on the attacker's behalf.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by bhushan5

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.