Skip to content
SSRF Write-up Advanced

How I Made 25000 Usd In Bug Bounties With Reverse Proxy

The author describes using a reverse proxy in front of internal servers to reach internal assets, escalating that access to two SQL injection issues and three remote code execution issues on internal servers. A separate section describes how a caching proxy (Nuster) could cache a self-XSS response under a crafted path, turning it into a stored XSS against other users.

Blindu CH Follow

Published on infosecwriteups.com

A proxy server is a go‑between or intermediary server that forwards requests for content from multiple clients to different servers across the Internet. A reverse proxy server is a type of proxy server that typically sits behind the firewall in a private network and directs client requests to the appropriate backend…

Blindu CH, on infosecwriteups.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 reverse proxy accepted absolute URLs or crafted paths in requests and forwarded them to internal hosts without validating the destination, and the caching layer keyed on a path that the backend normalised differently.

Impact

An attacker could reach internal servers and, per the author, obtain SQL injection and remote code execution there, and could serve a cached XSS payload to other users of the web application.

What the attacker needed

Access to the reverse proxy; a collaborator or DNS logging host; victim visits the cached URL

The fix

The proxy should reject absolute URLs and encoded traversal segments and only forward to allowlisted backends, and the cache should key on the normalised path.

How it was found

  1. Send a request to the reverse proxy with an absolute URL pointing at a collaborator host.
  2. Watch DNS responses and filter out WAF and manual pingbacks as false positives.
  3. If only DNS responds, try other ports and add a URL or subdomain that looks valid.
  4. Once an internal asset is reachable, browse it through the proxy and test it like an external site.
  5. For the cache issue, request a path with an encoded traversal segment so the cache stores the self-XSS response.
  6. Reuse the cached response to attack other users.

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 other servers and passes requests to them, often hiding internal machines from the internet. If it can be tricked into fetching an address the attacker chooses, the attacker may reach internal systems that were never meant to be public. The second part is about a cache: a store of saved responses, which can hand a malicious page to other visitors if the wrong thing is saved.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

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.