Skip to content
SSRF Write-up Intermediate

Five Bounties, One Bug: Exploiting the Same SSRF via Five Unique

The application passed a user-supplied shop URL directly to a backend HTTP client without validation, allowing blind SSRF. An attacker could perform internal port scanning and reach the AWS metadata service by using alternative loopback addresses, octal IP notation, and an open redirect.

Kayra Öksüz Follow

Published on medium.com

In this article, I’ll walk through a server-side request forgery (SSRF) vulnerability I discovered during my individual research, demonstrating how I was able to exploit it using five different techniques. For each bypass, I’ll share the logic behind the attack, the reward it led to, and how the corresponding…

Kayra Öksüz, 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.

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 application passed user-controlled URLs to an HTTP client without normalising or validating the destination IP address, and it followed redirects without re-checking the final destination.

Impact

The attacker could perform blind SSRF to scan internal ports and reach the AWS metadata service, though the response content was not visible.

What the attacker needed

A user account able to set shop_Url; the server must make outbound requests; blind SSRF (no response content)

The fix

The application should validate and normalise the destination IP address, block all internal ranges including cloud metadata, and not follow redirects without re-validation; the text does not state that a final fix was applied.

How it was found

  1. Submit a shop URL pointing to [redacted]:80 and observe a fast response, indicating the port is open.
  2. Submit a shop URL pointing to [redacted]:79 and observe a timeout, indicating the port is closed.
  3. Bypass the localhost block by using [redacted]:80, which still resolves to loopback.
  4. Bypass the loopback range block by using octal notation 0177.0000.0000.0001:80.
  5. Bypass IP blocks by using an open redirect service that redirects to http://localhost:80.
  6. Use the open redirect to reach the AWS metadata endpoint at 169.254.169.254.

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.

Server-side request forgery (SSRF) happens when a website lets you supply a URL that its server then fetches. Here, the shop URL field was used by the server to make a request, so an attacker could point it at internal addresses like localhost or cloud metadata. Even though the attacker could not see the response, timing differences revealed which internal ports were open.

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.