Skip to content
SSRF Write-up Intermediate

Cracking the lens: targeting HTTP's hidden attack-surface

The article describes how malformed HTTP requests and headers can cause reverse proxies and load balancers to misroute requests, enabling access to internal networks. An attacker could exploit this to reach internal services, as demonstrated by accessing Yahoo's Traffic Server admin interface and earning bug bounties.

James Kettle Follow

Published on portswigger.net

Bounty$33,000total stated by author View original

Modern websites are browsed through a lens of transparent systems built to enhance performance, extract analytics and supply numerous additional services. This almost invisible attack surface has been largely overlooked for years.

James Kettle (@albinowax), on portswigger.net

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 reverse proxy or load balancer fails to properly validate the Host header or request line, allowing an attacker to specify an arbitrary destination.

Impact

This could allow an attacker to access internal networks and services, potentially leading to further exploitation such as configuration changes or data access.

What the attacker needed

Target uses a vulnerable reverse proxy; attacker can send crafted HTTP requests; attacker controls a domain for callbacks

How it was found

  1. Send a request with a Host header pointing to an external collaborator domain.
  2. Observe a DNS or HTTP callback from the target's infrastructure.
  3. Use the callback to identify internal systems and further probe them.

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.

A reverse proxy is a server that sits in front of websites and forwards requests to the right internal server. If it can be tricked into sending requests to a different destination, an attacker might reach internal systems that are normally hidden from the internet. This article shows how sending unusual HTTP headers can cause that misrouting.

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 James Kettle

View all

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