Skip to content
SSRF Write-up Intermediate

A Forgotten Domain, a Hidden SSRF: How I Followed a Gut Feeling a

An old, forgotten domain still pointed at the same infrastructure and kept an unpatched proxy endpoint that fetched user-supplied URLs. By pointing it at an attacker-controlled redirect, the server followed the redirect to the AWS metadata service and returned IAM role data.

Rutvik Kalkumbe Follow

Published on medium.com

I was scrolling through the support panel of a private bug bounty program on example.com when something subtle grabbed my attention.

Rutvik Kalkumbe, 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 proxy validated only the initial URL and did not re-check redirect targets, and the forgotten domain shared infrastructure with the main site.

Impact

The attacker could read EC2 instance metadata and IAM role credentials, though the program said the role had limited permissions and no further escalation was possible.

What the attacker needed

Knowledge of the old domain; attacker-controlled redirect host; proxy endpoint reachable

How it was found

  1. Notice the admin email in a support video uses a different domain.
  2. Visit that domain and see it resolves to the same server as the main site.
  3. Find the proxy endpoint on the old domain.
  4. Confirm a direct request to the metadata address is blocked.
  5. Host a redirect that points to the metadata credentials path.
  6. Request the proxy with the redirect URL and read the returned metadata.

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 server-side request forgery (SSRF) bug lets an attacker make the server fetch a URL of their choosing, including internal addresses the attacker cannot reach directly. Here the proxy endpoint blocked the cloud metadata address directly, but it still followed an HTTP redirect to that address, so the protection was bypassed. The metadata service hands out temporary cloud credentials, which is why this matters.

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 Rutvik Kalkumbe

View all

1 more disclosed report, 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.