Skip to content
SSRF Disclosed report Beginner

Unauthenticated Blind SSRF at https://█████ via xmlrpc.php file

The xmlrpc.php endpoint on a WordPress site accepted a pingback.ping request that made the server fetch an attacker-controlled URL. An attacker could use this to make the server send requests to arbitrary external or internal addresses.

0r10nh4ck Follow

Originally disclosed on HackerOne

  • Triaged in 13 hours
  • Fixed in 14 days
  • Disclosed after 43 days

Description:

Hi team,

I would like to report a security vulnerability I discovered on your website. I was able to perform Server-Side Request Forgery (SSRF) attacks via the xmlrpc.php file at https://████████ endpoint. Using a simple POST request to the xmlrpc.php endpoint, I was able to bypass input validation and send a request to an external URL.

I have attached a proof of concept (PoC) script that demonstrates this vulnerability. It sends a request to my VPS server using interact.sh client (https://github.com/projectdiscovery/interactsh), but an attacker could use this technique to send requests to any URL of their choosing.

References

https://www.sonarsource.com/blog/wordpress-core-unauthenticated-blind-ssrf/ https://nitesculucian.github.io/2019/07/01/exploiting-the-xmlrpc-php-on-all-wordpress-versions/

Impact

The vulnerability could be used to conduct further attacks, such as accessing internal systems or exfiltrating sensitive data.

System Host(s)

███████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

  1. Start a server in vps using interact.sh or use burpsuite collaborator.
  2. Go to: https://███/xmlrpc.php
  3. See the response:
XML-RPC server accepts POST requests only.
  1. Go to burpsuite and send this request to the repeater.
  2. Change the request method to POST.
  3. Get the URL of your server listener and set this payload at request:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>pingback.ping</methodName>
<params>
<param>
<value><string>https://your server</string></value>
</param>
<param>
<value><string>https://█████/</string></value>
</param>
</params>
</methodCall>
  1. Send the POST request.
  2. See the response in your server log.

Suggested Mitigation/Remediation Actions

I would recommend implementing input validation and filtering to prevent these types of attacks in the future. Please let me know if you require any additional information or if you have any questions.

The original report as published on HackerOne, by 0r10nh4ck. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

WordPress ships with xmlrpc.php, an endpoint that accepts XML-RPC calls over HTTP POST. One of the methods it exposes is pingback.ping, part of the pingback mechanism that lets one blog notify another when it links to it. The method takes two URLs: a source URL that the server fetches to verify the link, and a target URL on the local blog. Because the server performs an outbound HTTP request to the source URL supplied by the caller, this method is a classic SSRF primitive when it is reachable without authentication.

The target here was a U.S. Department of Defence host, reachable at https://████████, with the vulnerable endpoint at https://███/xmlrpc.php. The researcher reported an unauthenticated blind SSRF: the server made a request to an attacker-controlled URL, and the attacker observed the hit on their own listener rather than reading any response body from the target.

Setup

No account or authentication was needed. The researcher used two tools:

  1. A listener reachable from the internet. The report describes starting a server on a VPS with the interact.sh client (https://github.com/projectdiscovery/interactsh), or alternatively using Burp Suite Collaborator.
  2. Burp Suite, to capture a request to the endpoint and resend it through the Repeater.

The report lists no affected product version and no CVE number.

Finding it

The researcher requested xmlrpc.php on the host and saw that it answered with a message saying it accepts POST requests only. That is the behaviour the researcher set out to demonstrate: a POST to xmlrpc.php that bypasses input validation and sends a request to an external URL.

Exploitation

Step 1: Start a listener

Start a server on a VPS using interact.sh, or use Burp Suite Collaborator.

Step 2: Visit the endpoint

Request https://███/xmlrpc.php in a browser. The server answers:

Text
XML-RPC server accepts POST requests only.

It also tells you the request has to be a POST.

Step 3: Prepare the request in Burp

Send the request to the Repeater and change the method to POST.

Step 4: Send the pingback payload

Take the URL of your listener and place it as the first parameter of pingback.ping. The second parameter is the target blog URL on the victim host. The payload used was:

XML
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>pingback.ping</methodName>
<params>
<param>
<value><string>https://your server</string></value>
</param>
<param>
<value><string>https://█████/</string></value>
</param>
</params>
</methodCall>

The first <string> is the source URL, the address the WordPress server will fetch to check the pingback. Pointing it at the listener is what turns the call into an outbound request to an attacker-chosen destination. The second <string> is the target URL on the victim blog. The XML is wrapped in a methodCall naming pingback.ping, which is the method that triggers the server-side fetch.

Step 5: Send the POST and check the listener

Send the POST request and watch your server log. The request arriving from the target host is the proof: the application made an outbound connection to a URL the researcher supplied, without any authentication.

Root cause

The pingback.ping method performs a server-side HTTP request to a URL supplied in the request body. The report states that a simple POST to xmlrpc.php was enough to bypass input validation and reach an external URL, so the validation in place did not restrict where the server could connect. The report does not describe the validation logic itself, so the precise check that failed is not stated; likely the source URL was accepted without restricting it to expected destinations or blocking internal address ranges.

Impact

The report frames the impact as enabling further attacks, such as accessing internal systems or exfiltrating sensitive data. The SSRF is blind: the attacker sees that the request was made, on their own listener, but the report does not show any response data being returned through the endpoint.

Fix

The report recommends implementing input validation and filtering to prevent these types of attacks.

Variants to test

  1. Other XML-RPC methods that take a URL and cause a fetch. A positive result is an inbound request on your listener after you send the call.
  2. The same pingback.ping call against other WordPress installations with xmlrpc.php enabled. A positive result is the same listener hit, ideally from a host you did not expect to make outbound requests.
  3. Pointing the source URL at internal address ranges or internal hostnames instead of your listener. A positive result is a difference in timing or behaviour that indicates the server attempted the internal connection, since the response itself is blind.
  4. Sending the payload with different HTTP methods or content types to see whether validation can be bypassed another way. A positive result is a listener hit where a plain POST was rejected.

Hunting notes

From there, the pingback.ping method is the quickest way to test for outbound requests, and an interact.sh or Collaborator hostname gives you the out-of-band confirmation that makes a blind SSRF provable.

References

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 12 min read.

What happened, in plain words

A security researcher found a way to make a website belonging to the U.S. Department of Defence send a request to a server the researcher controlled, without logging in or having any account. The website runs WordPress, a very common piece of software for building blogs and websites, and WordPress ships with a file called xmlrpc.php. That file is a small doorway that lets other programs talk to the site. One of the things it can be asked to do is fetch a web address and check it. The researcher asked it to fetch an address on their own server, and the server did exactly that. The researcher saw the request arrive in their own logs.

This kind of bug is called Server-Side Request Forgery, or SSRF. The name describes it well: the server (the machine running the website) is tricked into forging a request on the attacker's behalf. The attacker does not send the request from their own computer; the victim's server sends it. That matters because the victim's server often sits inside a private network and can reach machines that the outside world cannot.

This particular case is also called blind. Blind means the attacker cannot see what the server got back. The researcher only knows the request happened because it arrived at their own listener, a server they set up to record incoming connections. They never saw a response from the target site itself.

Background: the pieces involved

Before walking through the steps, here are the ideas you need. Each one is explained from scratch.

What WordPress is

WordPress is software that runs a website. You install it on a server, and it gives you a blog or a site with pages, posts and comments. Millions of sites use it. Because it is so common, its files are well known to attackers and to defenders alike.

What xmlrpc.php is

xmlrpc.php is a file that comes with every standard WordPress installation. It is an endpoint, meaning a specific address on the website that accepts requests. Think of it as a service counter at the back of a shop: most visitors never go there, but it is open and it handles a particular kind of business.

The business it handles is called XML-RPC. XML is a way of writing data as text with tags around it, a bit like a form with labelled boxes. RPC stands for Remote Procedure Call, which means one computer asking another computer to run a function, like phoning a restaurant and asking them to prepare a dish rather than cooking it yourself. So XML-RPC is a way for one program to send a written request to another program and ask it to do something.

What a method is

Inside XML-RPC, the thing you ask for is called a method. A method is a named action the server knows how to perform. xmlrpc.php offers several methods, and each one does a different job. You name the method in your request, and the server runs it.

What pingback is

One of those methods is called pingback.ping. It belongs to a feature called pingback. Pingback exists so that blogs can tell each other when one links to the other. If blog A writes a post linking to blog B, blog A can send a pingback to blog B saying "hey, I linked to you". Blog B then fetches the page on blog A to check the link really exists, and if it does, blog B may show a comment or a note saying "blog A linked here".

That checking step is the important part. To verify the link, blog B's server has to go out and fetch a web address. And that address is supplied by whoever sent the pingback. In normal use, the address is a real blog post. In an attack, the address is whatever the attacker wants.

What SSRF means

SSRF, Server-Side Request Forgery, is when an attacker can make a server send a request to an address the attacker chooses. The everyday comparison: imagine a building where visitors cannot enter certain rooms, but the receptionist can walk anywhere inside. If you can convince the receptionist to go into a room and read out what is written on the wall, you have reached a place you could not reach yourself. SSRF is that, but with a web server as the receptionist.

What blind means

In a blind SSRF, the attacker cannot read the response. They only know the request was made because it arrived somewhere they can observe, such as their own server. It is like sending a letter with a return receipt: you do not get to read what happens at the other end, but you know the letter was delivered.

What a listener is

A listener is a server that waits for incoming connections and records them. The researcher used two possible tools for this:

  1. The interact.sh client, from the project at https://github.com/projectdiscovery/interactsh. It gives you a unique hostname and shows you any request that arrives at it.
  2. Burp Suite Collaborator, a similar feature built into Burp Suite, a tool for inspecting and modifying web traffic.

Either way, you end up with an address you control and a log of hits. That log is the evidence.

What Burp Suite and Repeater are

Burp Suite is a program that sits between your browser and a website so you can see and change the requests your browser sends. Repeater is one of its windows: you put a request in, press send, and look at the response. It is useful because it lets you change details, such as the request method, and resend the same request over and over.

What a request method is

Every request your browser makes has a method, which tells the server what kind of action you want. GET means "give me this page". POST means "here is some data, please process it". A browser typing an address into the bar sends a GET. When you submit a form, the browser usually sends a POST.

The target

The host was a U.S. Department of Defence system, reachable at https://████████, with the vulnerable file at https://███/xmlrpc.php. The report lists no affected product version and no CVE number. A CVE is a public identifier given to a known vulnerability; the absence here just means none was assigned in the report.

Setting up

No account or login was needed for any of this. The researcher needed two things:

  1. A listener reachable from the internet, either interact.sh or Burp Suite Collaborator.
  2. Burp Suite, to capture a request to the endpoint and resend it through Repeater.

Finding it

That is the behaviour the researcher set out to demonstrate: a POST to xmlrpc.php that gets past input validation and sends a request to an external URL.

Input validation is the code a website uses to check that what you sent makes sense and is allowed. If a form asks for a number and you type a word, validation should reject it. Here, the validation did not stop the server from being pointed at an outside address.

Exploitation, step by step

Step 1: Start a listener

Start a server on a VPS using interact.sh, or use Burp Suite Collaborator. A VPS is a virtual private server, a rented machine on the internet. Either tool gives you a unique hostname you control and a log of incoming requests. That log is what makes a blind SSRF observable: without it, you would have no way to know the target server had reached out.

Step 2: Visit the endpoint

Request https://███/xmlrpc.php in a browser. The server answers:

Text
XML-RPC server accepts POST requests only.

This message confirms two things. First, the file is present. Second, the XML-RPC interface is switched on. It also tells you the request has to be a POST, because the browser sent a GET and the server refused it with that message.

Step 3: Prepare the request in Burp

Send the request to Repeater and change the method to POST. You do this because the server just told you it only accepts POST. Repeater lets you edit the method and the body before sending, which a browser address bar cannot do.

Step 4: Send the pingback payload

Take the URL of your listener and place it as the first parameter of pingback.ping. The second parameter is the target blog URL on the victim host. The payload used was:

XML
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>pingback.ping</methodName>
<params>
<param>
<value><string>https://your server</string></value>
</param>
<param>
<value><string>https://█████/</string></value>
</param>
</params>
</methodCall>

Line by line:

  • <?xml version="1.0" encoding="UTF-8"?> declares that what follows is XML, version 1.0, written in UTF-8 character encoding. It is a standard opening line, like the header of a letter.
  • <methodCall> opens the request. Everything inside it is one call to one method.
  • <methodName>pingback.ping</methodName> names the method being called. This is the pingback action described earlier, the one that makes the server fetch a URL.
  • <params> opens the list of parameters, the inputs the method needs.
  • The first <param> block contains <value><string>https://your server</string></value>. This is the source URL: the address the WordPress server will fetch to check the pingback. Pointing it at your listener is what turns the call into an outbound request to a destination you chose. In the report this placeholder stands for the address of your own listener.
  • The second <param> block contains <value><string>https://█████/</string></value>. This is the target URL on the victim blog, the page the pingback is supposedly about.
  • </params>, </methodCall> close the list and the call.

The structure matters: the XML is wrapped in a methodCall naming pingback.ping, which is the method that triggers the server-side fetch. If you named a different method, the server would do something else, or nothing.

Step 5: Send the POST and check the listener

Send the POST request and watch your server log. A request arriving from the target host is the proof. The application made an outbound connection to a URL the researcher supplied, without any authentication. You are not looking for anything in the response from the target; you are looking at your own listener, which is why this is called blind.

Why it works

The pingback.ping method performs a server-side HTTP request to a URL supplied in the request body. The report states that a simple POST to xmlrpc.php was enough to get past input validation and reach an external URL, so the validation in place did not restrict where the server could connect. The report does not describe the validation logic itself, so the precise check that failed is not stated. A likely explanation is that the source URL was accepted without restricting it to expected destinations or blocking internal address ranges, but that is an inference, not something the report confirms.

Impact

The report frames the impact as enabling further attacks, such as accessing internal systems or exfiltrating sensitive data. Exfiltrating means getting data out of a place it was supposed to stay. The SSRF is blind: the attacker sees that the request was made, on their own listener, but the report does not show any response data being returned through the endpoint.

Fix

The report recommends implementing input validation and filtering to prevent these types of attacks.

Variants to test

In each case, a positive result is described so you know what success looks like.

  1. Other XML-RPC methods that take a URL and cause a fetch. A positive result is an inbound request on your listener after you send the call.
  2. The same pingback.ping call against other WordPress installations with xmlrpc.php enabled. A positive result is the same listener hit, ideally from a host you did not expect to make outbound requests.
  3. Pointing the source URL at internal address ranges or internal hostnames instead of your listener. A positive result is a difference in timing or behaviour that indicates the server attempted the internal connection, since the response itself is blind.
  4. Sending the payload with different HTTP methods or content types to see whether validation can be bypassed another way. A positive result is a listener hit where a plain POST was rejected.

Hunting notes

Reconnaissance means the early stage of looking around a target to see what is there. From there, the pingback.ping method is the quickest way to test for outbound requests, and an interact.sh or Collaborator hostname gives you the out-of-band confirmation that makes a blind SSRF provable. Out-of-band means the evidence arrives through a separate channel, here your own listener, rather than in the response to your request.

References

Glossary

  • API: a defined way for one program to ask another program to do something, like a menu of actions with rules for how to order them.
  • Authentication: proving who you are, usually by logging in. Unauthenticated means no login is required.
  • Blind SSRF: an SSRF where the attacker cannot read the response, only confirm that a request was made.
  • Burp Suite: a tool for intercepting, inspecting and modifying web traffic between your browser and a site.
  • Burp Suite Collaborator: a feature of Burp Suite that provides a listener and records incoming requests.
  • Content type: a label on a request or response saying what kind of data it carries, such as XML or a form.
  • CVE: a public identifier assigned to a known vulnerability.
  • Endpoint: a specific address on a website that accepts requests and does something with them.
  • Exfiltration: getting data out of a system where it was meant to stay.
  • GET: an HTTP method meaning "give me this page".
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • Input validation: code that checks whether the data a user sent is allowed and sensible before acting on it.
  • interact.sh: a client from ProjectDiscovery that gives you a hostname and shows requests arriving at it.
  • Listener: a server that waits for incoming connections and records them.
  • Method (HTTP): the part of a request saying what kind of action you want, such as GET or POST.
  • Method (XML-RPC): a named action a server knows how to perform, such as pingback.ping.
  • Out-of-band: evidence that arrives through a separate channel rather than in the response to your request.
  • Parameter: an input value passed to a method or function.
  • Pingback: a WordPress feature that lets one blog notify another when it links to it, and makes the receiving blog fetch the linking page to check.
  • POST: an HTTP method meaning "here is some data, please process it".
  • Reconnaissance: the early stage of examining a target to see what is there.
  • Repeater: a Burp Suite window where you can edit a request and resend it.
  • RPC (Remote Procedure Call): one computer asking another to run a function.
  • Server: a computer that provides a service, such as hosting a website.
  • SSRF (Server-Side Request Forgery): a bug where an attacker can make a server send a request to an address the attacker chooses.
  • VPS: a virtual private server, a rented machine on the internet.
  • WordPress: software for building and running blogs and websites.
  • XML: a way of writing data as text with tags around it, like a form with labelled boxes.
  • XML-RPC: a way for one program to send a written request to another and ask it to run a named method.
  • xmlrpc.php: the standard WordPress file that accepts XML-RPC requests.

More by 0r10nh4ck

View all

6 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

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.