Skip to content
SSRF Write-up Intermediate

XML-RPC PHP File Abuse (xmlrpc.php) | Blind SSRF via WordPress XML-RPC pingback.ping

The WordPress XML-RPC pingback.ping method can be abused to make the server send HTTP requests to arbitrary URLs, leading to blind SSRF. An attacker could use this to scan internal networks or access cloud metadata services.

terp0x0 Follow

Published on medium.com

WordPress ships with XML-RPC, a feature that allows remote procedure calls using XML. Originally, it was meant for things like remote publishing or mobile app integration.

SudoHunt, 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 pingback.ping method does not validate or restrict the URLs it fetches, allowing requests to internal or arbitrary destinations.

Impact

An attacker could use the server to scan internal networks or access cloud metadata services, potentially leading to further compromise if internal services are vulnerable.

What the attacker needed

XML-RPC enabled on WordPress; pingback.ping method available

How it was found

  1. Send a request to xmlrpc.php with method system.listMethods to check if XML-RPC is enabled.
  2. Send a request using method pingback.ping with an attacker-controlled URL as the first parameter and a valid post URL as the second.
  3. Observe an incoming DNS request from the target server, confirming blind SSRF.

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 your site. The pingback function can be tricked into making your server visit any web address the attacker chooses, even internal ones that are not public. This is called SSRF (Server-Side Request Forgery) and can let an attacker probe your private network.

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 terp0x0

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.