Skip to content
SSRF Write-up Beginner

Server-side request forgery (SSRF) Writeup

The stock check feature fetched a URL supplied by the user without restriction, so an attacker could make the server request internal addresses such as the admin interface. This allowed the attacker to reach the admin panel and delete a user.

medium.com

Published on medium.com

To tackle this lab using Burp Suite, start by clicking on “Check Stock” and capture the request. Then, send this request to the Repeater.

Messum Zaidi, 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 accepted a full URL from the user and fetched it without restricting the destination to allowed hosts.

Impact

An attacker could reach internal-only services and perform admin actions such as deleting a user.

What the attacker needed

Access to the stock check feature; ability to intercept and modify requests

How it was found

  1. Capture the stock check request and send it to Repeater.
  2. Change the stockApi parameter to point at the internal admin interface.
  3. Send the request and view the admin panel.
  4. Use the admin panel to delete the user carlos.

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, like a stock checker. It did not check where that address pointed, so someone could ask it to fetch a private internal page instead. That let them see and use an admin page they should not have been able to reach.

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.