Skip to content
SSRF Write-up Beginner

️ How I Earned $150 by Exploiting an XML-RPC SSRF in a WordPres

The WordPress XML-RPC endpoint was publicly accessible, allowing unauthenticated method enumeration and SSRF via the pingback.ping method. An attacker could make the server initiate HTTP requests to internal IPs, potentially enabling port scanning and access to cloud metadata services.

Sauravkrish 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 $150 bounty. In this blog, I’ll explain how this happened and why this issue is more dangerous than it seems.

@Sauravkrish, 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 without restricting access to dangerous methods like pingback.ping, allowing unauthenticated users to trigger server-side requests.

Impact

An attacker could perform internal port scanning, access cloud metadata services to extract credentials, and potentially chain with other vulnerabilities for remote code execution, though the pingback request itself failed due to backlink validation.

What the attacker needed

XML-RPC enabled on the WordPress site; No authentication required

The fix

XML-RPC should be disabled if unused, or dangerous methods like pingback.ping should be blocked and access restricted to authenticated users.

How it was found

  1. Send a POST request to /xmlrpc.php with a system.listMethods call to enumerate available methods.
  2. Observe that pingback.ping is among the enabled methods.
  3. Send a POST request to /xmlrpc.php with a pingback.ping call targeting an internal address such as [redacted]:22.
  4. Observe the fault response indicating the server attempted a connection to the 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.

XML-RPC is a feature in WordPress that lets other programs talk to the site. The pingback.ping method is supposed to notify a site when it is linked to, but it can be tricked into making requests to internal addresses. This means an attacker could use the WordPress server to probe internal services that are not otherwise reachable from the internet.

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 Sauravkrish

View all

4 more disclosed reports, 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.