Write-up — Blind SSRF with Shellshock Exploitation
A web application fetched the URL in the Referer header, creating a blind SSRF that let an attacker reach internal hosts. By scanning the internal range and sending a Shellshock payload in the User-Agent, the attacker executed a command on an internal server and exfiltrated the OS username via DNS to Burp Collaborator.
medium.com
Published on medium.com
O objetivo do laboratório era explorar uma vulnerabilidade de Blind SSRF utilizando o header Referer para atingir um servidor interno na faixa 192.168.0.X:8080.
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 analytics feature fetched an attacker-controlled URL from the Referer header without validation, and an internal server ran a vulnerable Bash version that interpreted HTTP headers as shell code.
Impact
An attacker could use the server to reach internal hosts and, on a vulnerable internal server, execute commands and exfiltrate system information such as the OS username.
What the attacker needed
A product page that triggers the analytics fetch; control over the Referer header; an internal host vulnerable to Shellshock; a Burp Collaborator domain
How it was found
- Send a request with the Burp Collaborator domain in the Referer header and observe no useful interaction.
- Build a Shellshock payload in the User-Agent that runs nslookup with the output of whoami as a subdomain of the Collaborator domain.
- Set the Referer header to an internal address in the 192.168.0.X:8080 range.
- Use Burp Intruder with a Numbers payload from 0 to 255 on the last octet of the internal IP to find the correct host.
- Poll Burp Collaborator and observe a DNS interaction containing the OS username.
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.
The site had a feature that quietly visited whatever web address was placed in a request header called Referer. Because the site made that request from inside its own network, an attacker could use it to reach internal machines that are not exposed to the internet. One of those internal machines ran an old Bash shell vulnerable to Shellshock, which let the attacker run a command and send the result out through a DNS lookup.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.