Skip to content
SSRF Write-up Intermediate

How I Found a Critical SSRF (Very Easily) Through Redirect Bypass

A business profile website URL field was fetched by a backend crawler, and a direct request to the cloud metadata address was blocked with a 403. By pointing the field at an attacker-controlled server that returned a 302 redirect to the metadata address, the crawler followed the redirect and the attacker observed internal observability headers.

InsbatArshad Follow

Published on medium.com

Assalam o alaikum for muslims and Hello for non muslims i am back with another technica finding.

Be nice insabat, 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 outbound fetcher validated only the initial URL against a blacklist and did not re-validate redirect targets against an allowlist.

Impact

The crawler could reach internal and metadata addresses, potentially exposing cloud credentials and internal services, and the leaked tracing headers disclosed internal environment details; the author notes the report was closed as a duplicate.

What the attacker needed

Ability to set a business profile website URL; attacker-controlled server; server-side crawler follows redirects

The fix

The outbound client should not follow redirects to non-public addresses and should re-validate every redirect target against an allowlist, with crawlers isolated from internal networks.

How it was found

  1. Submit the cloud metadata address in the business profile website URL field.
  2. Observe the request is blocked with HTTP 403 Forbidden.
  3. Host a URL that responds with a 302 redirect to the metadata address.
  4. Submit the attacker-controlled URL in the website field.
  5. Observe the crawler follow the redirect and send requests to the attacker domain with internal headers.

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.

Some websites ask the server to visit a link you give it, for example to check a business website. If the server can be tricked into visiting its own private addresses, it may leak internal information. Here the filter blocked the private address directly, but the server still followed a redirect to it.

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 InsbatArshad

View all

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