Skip to content
SSRF Write-up Intermediate

SSRF Exploitation: From Reading Internal Pages to Dumping System

A web application passed a user-supplied URL from a POST parameter to a server-side fetch, allowing an attacker to reach an internal host and read its admin panel without authentication. The same flaw let the attacker read local files via the file:// scheme and send arbitrary TCP data with gopher://.

Moncef fennan Follow

Published on systemweakness.com

At the end of part 1, we had confirmed two things: the SSRF is reflected — meaning the server fetches whatever we point it at and sends the response back to us — and the server is talking to a separate internal host called dateserver.htb that we can't reach directly from the outside.

Moncef fennan, on systemweakness.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 a user-controlled URL directly to a server-side fetch function without restricting the destination host or the URL scheme.

Impact

An attacker could reach internal-only services, obtain full admin access without credentials, read local files such as configuration and credentials, and interact with non-HTTP internal services.

What the attacker needed

Access to the vulnerable POST endpoint; no authentication needed on internal admin

The fix

The application should validate and restrict the URL scheme and destination host before making any server-side request.

How it was found

  1. Send a POST request to the application with the dateserver parameter pointing at the internal host.
  2. Brute-force directory names through the SSRF to find hidden endpoints on the internal host.
  3. Point the parameter at the discovered admin page to retrieve the dashboard.
  4. Change the URL scheme to file:// and request a local file path to read it.
  5. Use the gopher:// scheme to send a crafted POST request to an internal service.

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 form field where it took a web address from the user and then fetched that address on the server's behalf. Because the server sits inside a private network, an attacker could make it fetch internal pages that outsiders cannot reach, and even read files on the server itself.

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.