Skip to content
SSRF Write-up Intermediate

SSRF with filter bypass via open redirection vulnerability —�

A stock-checking feature accepted a URL and fetched it server-side, but a filter blocked direct requests to internal hosts. By pointing it at an open redirect on the same site, the attacker made the server follow the redirect to the internal admin panel and delete a user.

0xm3ro Follow

Published on medium.com

Server-side request forgery is a web security vulnerability that allows an attacker to make the server to make requests to an unintended location.

0xm3ro, 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 server-side fetcher validated the supplied URL but then followed redirects without re-checking the destination, so an open redirect on the same origin bypassed the filter.

Impact

An attacker could make the server reach internal-only services such as the admin panel and perform privileged actions like deleting a user.

What the attacker needed

Access to the stock-check feature; an open redirect on the same site

How it was found

  1. Open a product page and use the next-product button, which redirects based on a URL in the path.
  2. Send the stock-check API a URL pointing at that next-product path with the internal admin address as its target.
  3. Observe the stock API reaching the internal admin system through the redirect.
  4. Use the same approach to trigger the delete action for the target user.
  5. Follow the redirect and confirm the lab is solved.

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.

The website had a feature that fetched a web address for you on the server. A filter stopped it from fetching internal addresses directly, but the site also had a page that would redirect anywhere you asked. The attacker used that redirect page as a stepping stone, so the server followed it to an internal admin page and performed an action there.

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.