Skip to content
SSRF Write-up Beginner

Blind SSRF - The Hide & Seek Game

The application made a server-side request to a URL supplied in the Referer header, but the response was not shown to the user. An attacker could use this blind SSRF to make the server contact an external host they control, potentially reaching internal systems.

Shrey Shah Follow

Published on medium.com

Bounty$400 View original

{{media:0}}

Shrey Shah (Jerry), 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.

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. 5 min read.

Context

This is a blind server-side request forgery (SSRF) finding on a private program on HackerOne, for which the researcher was paid $400. The report does not name the target, the product or the feature. What it does say is that the target website used an API for interaction with the server, and that the researcher's dashboard offered several options to visit. The researcher replaced the referrer header URL with a Collaborator payload and received a pingback, which confirmed the blind SSRF.

Blind SSRF, as the report defines it, occurs when an application makes a request to a back-end server for some reason but the response is not shown on the front end. Because the interaction is one way, the impact is lower than that of a normal SSRF. The report notes that blind SSRF can be exploited to retrieve sensitive information from back-end systems and, in a rare case, to achieve remote code execution.

Setup

The tools used were BurpSuite with two components:

  • the Collaborator Everywhere extension, installed from the BApp Store;
  • the Burp Collaborator Client, which comes pre-installed with BurpSuite.

Collaborator Everywhere is the automated part: it evaluates requests passing through the proxy. The Collaborator Client is the manual part, used afterwards to confirm the finding with a payload of the researcher's choosing.

The report describes the out-of-band technique as the easiest way to find blind SSRF: an external server under your control is used to monitor network interactions with the system. If you do not want to set up your own server, Burp Collaborator can be used instead.

Installing Collaborator Everywhere

  1. Start your BurpSuite.
  2. Go to extender and click on BApp Store.
  3. Find the extension.
Image for post
BApp Store From the original on medium.com

The BApp Store listing used to find the extension.

  1. Install it to your BurpSuite.

Finding it

The researcher went to the target website and noticed it was using an API for interaction with the server, which prompted the idea of running Collaborator Everywhere against it. The extension was enabled, the browser was pointed at BurpSuite, the target was added to scope so that every request would be captured and evaluated, and the researcher then browsed the site normally. The Site Map afterwards showed Collaborator pingbacks, which indicated the application was making outbound requests.

Step 1: enable the extension

Start BurpSuite, go to Extender and click on Extensions, then select the installed extension (Collaborator Everywhere).

Image for post
Collaborator Everywhere From the original on medium.com

The Collaborator Everywhere extension selected in BurpSuite.

Step 2: set the browser proxy

Change the browser proxy to manual so that traffic goes through BurpSuite.

Image for post
Manual Proxy From the original on medium.com

The browser proxy configuration set to manual.

Step 3: add the target to scope

Refresh the page, then go to BurpSuite > Target > Site Map. Right click on the target and choose the option Add to scope.

Image for post
Add to scope From the original on medium.com

The Add to scope option in the Site Map context menu.

A pop-up appears; select Yes.

The confirmation pop-up, answered with Yes.

Step 4: browse the site properly

Visit the site as a normal user would: open your profile, go to your settings, and so on. In this case the dashboard offered the following options to visit.

Image for post
Options To Visit From the original on medium.com

The dashboard options the researcher browsed through.

Because the target was added to scope, every request is captured by BurpSuite and evaluated by the Collaborator Everywhere extension.

Step 5: read the Site Map

After some time the researcher checked the Site Map and found these issues.

Image for post
Collaborator Pingback HTTP From the original on medium.com

Collaborator pingback over HTTP.

A second Collaborator pingback over HTTP.

Image for post
Collaborator Pingback DNS From the original on medium.com

Collaborator pingback over DNS.

At this point the researcher knew the application was vulnerable to blind SSRF.

Exploitation

To confirm the finding by hand, the researcher used the Burp Collaborator Client, which is pre-installed in BurpSuite.

The Burp Collaborator Client.

Step 1: copy a Collaborator payload

Click on Copy to clipboard to copy the payload.

Copying the Collaborator payload to the clipboard.

Step 2: replace the Referer header

Send the request to Repeater and replace the referrer header URL with the copied Burp Collaborator client payload.

The request in Repeater with the Referer header replaced by the Collaborator payload.

The important part is the Referer header: its value was replaced with the Collaborator domain.

Step 3: send and poll

Click Go and wait 5 to 10 seconds, then click Poll now. The response from the server arrived.

The HTTP interaction received from the server.

The DNS lookup received from the server.

The report notes that the payload in the third-to-last image differs from the one in the second-to-last image because the issue was reproduced twice, so each reproduction used a different payload.

Root cause

The researcher replaced the user-controlled Referer header with a Collaborator payload and the back end contacted the Collaborator. The response to that request was never returned to the client, which is what makes the issue blind. The report does not describe the server-side code, so the exact reason the header is fetched (for example, link validation or logging enrichment) is not stated. The Collaborator server received the request, so the outbound request was not blocked.

Impact

The report rates the impact as lower than that of a normal SSRF because of the one-way nature of the interaction. Blind SSRF can be exploited to retrieve sensitive information from back-end systems, and in a rare case to achieve remote code execution. The researcher received $400 for the finding.

Important points when triaging blind SSRF

  1. It is common, when testing for blind SSRF, to find a DNS lookup for the given Burp Collaborator domain but no HTTP request. This happens because the application attempted to make an HTTP request to the domain, which caused the initial DNS lookup, but the actual HTTP request was blocked by network-level filtering.
  2. If you find only the DNS lookup or DNS query, it is not a vulnerability. It is mandatory to have the HTTP response, which is what makes it a valid vulnerability.

A DNS query only, rated P5.

The report points out that this case is considered P5 according to Bugcrowd's VRT.

Image for post
Image for post From the original on medium.com

Variants to test

  • A positive result is an HTTP interaction in the Collaborator Client, not just a DNS lookup.
  • A positive result is an HTTP request from the target's back end to the Collaborator domain.
  • Automated header injection. Running Collaborator Everywhere with the target in scope, as done here, surfaces candidates quickly. A positive result is a pingback in the Site Map that you can then reproduce manually in Repeater.
  • Distinguishing DNS from HTTP. For every candidate, check whether the Collaborator Client shows an HTTP interaction. A DNS-only result is not a valid finding, as the report stresses.

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. 11 min read.

What happened, in plain words

A security researcher found a bug in a website that was part of a private program on HackerOne. A private program is a bug bounty programme where the company invites only certain researchers to test its systems, rather than opening the doors to everyone. The company paid the researcher $400 for the finding. The report does not name the target, the product or the feature.

Shrey Shah (Jerry)
Shrey Shah (Jerry) From the original on medium.com

The bug is called blind server-side request forgery, usually shortened to blind SSRF. To understand it, you need two ideas.

The first is a server. When you visit a website, your browser asks a computer somewhere else, the server, for the page. The server is the machine that holds the site and does the work behind it.

The second is a request. A request is simply a message one computer sends to another asking for something: give me this page, save this data, fetch this image. Your browser sends requests all the time, and so do servers, to each other.

SSRF means that an attacker can make the server send a request to a destination the attacker chooses. Normally, when you type a web address into your browser, your computer makes the request. With SSRF, the trick is to make the server make the request instead. That matters because the server often sits inside a private network, behind firewalls, and can reach machines that you cannot reach from the outside.

Blind SSRF is the same thing, except you never see the answer. The server makes the request, but the response is not shown back to you on the page. The report defines it exactly this way: blind SSRF happens when an application makes a request to a back-end server for some reason, but the response is not shown on the front end. The front end is what you see in your browser; the back end is the machinery behind it.

Because the interaction only goes one way, the report rates the impact as lower than a normal SSRF. Even so, blind SSRF can be used to pull sensitive information out of back-end systems, and in a rare case it can be used to achieve remote code execution, which means running your own commands on the target's machine.

Image for post
Image for post From the original on medium.com

The tools: BurpSuite and its Collaborator

To find this kind of bug you need to watch traffic between your browser and the website, and you need a way to see whether the server is quietly contacting a machine you control. The researcher used BurpSuite, a popular tool for inspecting and modifying web traffic, plus two of its components.

  • Collaborator Everywhere is an extension, an add-on that plugs into BurpSuite. It automatically evaluates requests passing through BurpSuite, to see whether the server reacts to a Collaborator address.
  • Burp Collaborator Client is a built-in part of BurpSuite. It gives you a unique address you can hand out, and then shows you any contact that address receives, whether over HTTP (a web request) or DNS (the system that turns names like example.com into numeric addresses).

A header is a small piece of extra information attached to every web request and response, a bit like the label on a parcel. The label says who sent it, what it contains and how it should be handled. Headers are not the page itself; they are the metadata around it.

The report describes the out-of-band technique as the easiest way to find blind SSRF. Out-of-band simply means using a separate channel: instead of looking for the answer in the page you get back, you watch a server that you control, and see whether the target ever contacts it. That server has to be under your control so you can monitor the network interactions with the system. If you do not want to set up your own server, you can use Burp Collaborator instead, which is exactly what the researcher did.

Installing Collaborator Everywhere

  1. Start your BurpSuite.
  2. Go to extender and click on BApp Store.
  3. Find the extension.
Image for post
BApp Store From the original on medium.com

The BApp Store is BurpSuite's built-in shop of extensions; the screenshot shows the listing used to find Collaborator Everywhere.

  1. Install it to your BurpSuite.

Finding it

The researcher went to the target website and noticed it was using an API for interaction with the server. An API is a way for one piece of software to talk to another: instead of a page full of buttons, the site's own code sends structured requests to the server and gets structured answers back. Think of it as the waiter in a restaurant: you do not walk into the kitchen yourself, you tell the waiter what you want and the waiter brings it. Seeing an API suggested there was plenty of back-and-forth between the site and its server, which is exactly the kind of traffic worth testing for SSRF.

So the plan was: switch on Collaborator Everywhere, send all the site's traffic through BurpSuite, tell BurpSuite that this site is in scope (in scope means the target you are authorised to test, and BurpSuite will record and evaluate its traffic), and then browse the site like a normal user. If the server ever fetched one of the Collaborator addresses, the Site Map would show a pingback: a record of the target's server contacting the Collaborator.

Step 1: enable the extension

Start BurpSuite, go to Extender and click on Extensions, then select the installed extension (Collaborator Everywhere).

Image for post
Collaborator Everywhere From the original on medium.com

Selecting the extension is what makes it active. From this point on, requests passing through BurpSuite are evaluated by it.

Step 2: set the browser proxy

Change the browser proxy to manual so that traffic goes through BurpSuite.

Image for post
Manual Proxy From the original on medium.com

A proxy is a middleman. Setting your browser's proxy to manual and pointing it at BurpSuite means every request your browser makes goes to BurpSuite first, which can read it, record it and pass it on. Without this step, BurpSuite would see nothing.

Step 3: add the target to scope

Refresh the page, then go to BurpSuite > Target > Site Map. Right click on the target and choose the option Add to scope.

Image for post
Add to scope From the original on medium.com

The Site Map is BurpSuite's list of everything it has seen from the site. Adding the target to scope tells BurpSuite that this site is the one you care about, so its requests are captured and evaluated rather than ignored.

A pop-up appears; select Yes.

Step 4: browse the site properly

Visit the site as a normal user would: open your profile, go to your settings, and so on. The point is to trigger as many features as possible, because each feature is another chance for the server to make a request on your behalf. In this case the dashboard offered the following options to visit.

Image for post
Options To Visit From the original on medium.com

Because the target was added to scope, every request is captured by BurpSuite and evaluated by the Collaborator Everywhere extension. You are not attacking anything at this stage; you are just using the site, while the extension quietly tests each request.

Step 5: read the Site Map

After some time the researcher checked the Site Map and found these issues.

Image for post
Collaborator Pingback HTTP From the original on medium.com

Collaborator pingback over HTTP.

A second Collaborator pingback over HTTP.

Image for post
Collaborator Pingback DNS From the original on medium.com

Collaborator pingback over DNS.

A pingback over HTTP means the target's server actually made a web request to the Collaborator address. A pingback over DNS means it only looked the name up. At this point the researcher knew the application was vulnerable to blind SSRF.

Confirming it by hand

Automated tools can produce false alarms, so the researcher confirmed the finding manually with the Burp Collaborator Client, which is pre-installed in BurpSuite.

Step 1: copy a Collaborator payload

Click on Copy to clipboard to copy the payload.

A payload here is simply the special address the Collaborator Client generated for you. Anything that contacts that address shows up in the client, so it works like a tripwire.

Step 2: replace the Referer header

Send the request to Repeater and replace the referrer header URL with the copied Burp Collaborator client payload.

Repeater is a BurpSuite feature that lets you take a single captured request, edit it, and send it again as many times as you like, seeing each response. The Referer header is a standard header in which a browser tells the server which page you came from, for example when you click a link. After the Referer value was replaced with the Collaborator address, the back end contacted the Collaborator. By putting the Collaborator address there, the researcher made the server fetch the Collaborator address instead.

Step 3: send and poll

Click Go and wait 5 to 10 seconds, then click Poll now. The response from the server arrived.

The HTTP interaction received from the server.

The DNS lookup received from the server.

Polling means asking the Collaborator Client whether anything has contacted your address yet. The short wait gives the target's server time to make the request. The report notes that the payload in the third-to-last image differs from the one in the second-to-last image because the issue was reproduced twice, so each reproduction used a different payload. That is normal: each test gets a fresh tripwire address.

Why it worked

The researcher replaced the user-controlled Referer header with a Collaborator payload and the back end contacted the Collaborator. The response to that request was never returned to the browser, which is what makes the issue blind. The report does not describe the server-side code, so the exact reason the header is fetched is not stated. The Collaborator server received the request, so the outbound request was not blocked.

Impact

The report rates the impact as lower than a normal SSRF because the interaction only goes one way. Blind SSRF can be used to retrieve sensitive information from back-end systems, and in a rare case to achieve remote code execution. The researcher received $400 for the finding.

Important points when triaging blind SSRF

Triaging means deciding whether what you found is a real, reportable bug and how serious it is.

  1. When testing for blind SSRF it is common that you will find a DNS lookup for the given Burp Collaborator domain, but no HTTP request. This happens because the application attempted to make an HTTP request to the domain, which caused the initial DNS lookup, but the actual HTTP request was blocked by network-level filtering. In everyday terms: the server looked up the address in the phone book, but the call was never allowed to go through.
  2. If you find only the DNS lookup or DNS query then it is not a vulnerability. It is mandatory to have the HTTP response, which is what makes it a valid vulnerability. A DNS lookup alone proves the server tried to resolve the name, not that it actually reached out and fetched anything.

A DNS query only, rated P5.

The report points out that this case is considered P5 according to Bugcrowd's VRT. Bugcrowd is another bug bounty platform, and its VRT (Vulnerability Rating Taxonomy) is a public list that maps bug types to severity ratings. P5 is the lowest priority level, meaning little or no real impact.

Image for post
Image for post From the original on medium.com

Glossary

  • API: a way for one piece of software to talk to another, sending structured requests and receiving structured answers, rather than showing a page to a person.
  • Back end: the servers and code behind a website that do the actual work; the opposite of the front end you see in your browser.
  • BApp Store: BurpSuite's built-in catalogue of extensions you can install.
  • Blind SSRF: server-side request forgery where the server makes the attacker's chosen request but the response is never shown to the attacker.
  • Bug bounty programme: a scheme in which a company pays researchers for reporting security bugs in its systems.
  • Bugcrowd: a bug bounty platform, separate from HackerOne, that also publishes a severity taxonomy.
  • Burp Collaborator Client: a BurpSuite component that gives you a unique address and shows any HTTP or DNS contact it receives.
  • BurpSuite: a tool for intercepting, inspecting and modifying web traffic between a browser and a website.
  • Collaborator Everywhere: a BurpSuite extension that automatically injects Collaborator addresses into requests to test for out-of-band bugs.
  • DNS: the system that turns human-readable names into numeric network addresses, like a phone book for the internet.
  • DNS lookup / DNS query: a request to resolve a name into an address; it does not by itself mean any web request was made.
  • Extension: an add-on that adds features to an existing program such as BurpSuite.
  • Front end: the part of a website you see and interact with in your browser.
  • HackerOne: a bug bounty platform where companies run programmes and researchers submit reports.
  • Header: a small piece of metadata attached to a web request or response, such as who sent it or where it came from.
  • HTTP: the protocol browsers and servers use to exchange web requests and responses.
  • Impact: how much harm a bug could cause if exploited.
  • Network-level filtering: rules on the network that block certain outbound connections, even when a program tries to make them.
  • Out-of-band technique: detecting a bug by watching a separate server you control for contact from the target, instead of looking at the response.
  • P5: the lowest priority rating in Bugcrowd's taxonomy, meaning minimal or no impact.
  • Payload: here, the special Collaborator address used as a tripwire in a request.
  • Pingback: a record showing that the target's server contacted your Collaborator address.
  • Private program: a bug bounty programme open only to invited researchers.
  • Proxy: a middleman computer that traffic passes through, which can inspect and record it.
  • Referer header: a standard header in which a browser says which page the request came from.
  • Remote code execution: running your own commands on someone else's machine.
  • Repeater: a BurpSuite feature for editing a single captured request and resending it repeatedly.
  • Request: a message one computer sends to another asking for something.
  • Scope: the set of targets you are authorised to test, and which BurpSuite is told to record and evaluate.
  • Server: the computer that holds a website and does the work behind it.
  • Site Map: BurpSuite's list of everything it has seen from a site.
  • SSRF (server-side request forgery): a bug where an attacker can make the server send a request to a destination the attacker chooses.
  • Triaging: deciding whether a finding is a real, reportable bug and how serious it is.
  • VRT (Vulnerability Rating Taxonomy): Bugcrowd's public list mapping bug types to severity ratings.

More by Shrey Shah

View all

6 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.