Skip to content
SSRF Write-up Intermediate

SSRF on Steroids: How I Turned a PDF Generator Into a Cloud Data Firehose

The PDF export feature accepted HTML and fetched external resources, allowing server-side request forgery. An attacker could potentially access AWS metadata and internal services, though the text does not confirm successful extraction.

iski Follow

Published on medium.com

Free link 🎈

Iski, 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

Impact

An attacker could potentially read cloud metadata and internal services, but the text does not confirm successful extraction or full cloud compromise.

What the attacker needed

Access to PDF export feature; ability to submit HTML content

The fix

The PDF generator should sanitise HTML input, use allowlists for external resources, block internal IP ranges, and use IMDSv2.

How it was found

  1. Send a request to the PDF export endpoint with HTML content.
  2. Include an image or iframe pointing to an external test server to check for SSRF.
  3. Try advanced payloads like DNS rebinding or file protocol to access internal resources.
  4. Attempt to fetch AWS metadata endpoints via the PDF generator.
  5. Use exfiltration techniques to send retrieved data to an attacker-controlled server.

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.

A PDF generator takes HTML and turns it into a PDF. If it loads images or styles from URLs, an attacker can make it request internal addresses, like cloud metadata, which may leak secrets.

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 iski

View all

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