Skip to content
SSRF Write-up Intermediate

Inside a 90-Minute SSRF → Admin Panel → RCE Kill Chain

A PDF-generation endpoint accepted arbitrary user-supplied URLs without restriction, allowing server-side request forgery. The attacker used this to reach an unauthenticated internal admin panel that executed system commands via a parameter, achieving remote code execution.

medium.com

Published on medium.com

During a recent web application assessment, I encountered one of the cleanest and most dangerous vulnerability chains you can find in a modern environment: an exposed PDF-generation endpoint that led directly to an internal admin panel and ultimately remote code execution (RCE).

Tyreek Haynes, 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 PDF endpoint lacked an allowlist for outbound requests, and an internal admin panel with a command-execution parameter was reachable from the same network without authentication.

Impact

An attacker could run arbitrary commands on the server, leading to full system compromise.

What the attacker needed

Access to the PDF generation feature; no authentication required for internal admin panel

The fix

The PDF endpoint should be restricted to an allowlist of approved domains, all admin interfaces should require authentication, and command-execution parameters should be removed.

How it was found

  1. Submit an external URL to the PDF endpoint to confirm it works.
  2. Submit a localhost URL to the PDF endpoint to confirm SSRF.
  3. Probe internal paths and discover an unauthenticated admin panel on localhost.
  4. Use the PDF endpoint to request the admin panel with a command parameter.
  5. Observe the command output in the generated PDF, confirming RCE.

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 application had a feature that fetched a web page to turn it into a PDF. It did not check which addresses it was allowed to fetch, so an attacker could make it fetch internal-only pages. One of those internal pages was an admin tool that ran system commands without asking for a password, so the attacker could run commands on the server.

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.