Skip to content
SSRF Write-up Intermediate

From $0 to $14,000: How a Blind SSRF in a PDF Generator Cracked a

A PDF export feature rendered user-supplied HTML and fetched internal resources, allowing blind SSRF. The attacker used it to reach localhost services and the AWS metadata endpoint, obtaining live cloud credentials.

T4nv1 Follow

Published on medium.com

A few months ago, I was looking at a private program on Bugcrowd that managed financial data for enterprise clients. The scope was massive, but the application was heavily fortified.

T4nv1, 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 rendering service accepted user-controlled HTML and fetched remote resources without restricting outbound access to internal networks or cloud metadata endpoints.

Impact

The attacker could read internal services and obtain live AWS credentials with administrative read access, though outbound internet access was blocked.

What the attacker needed

Access to an invoicing dashboard; ability to export a statement to PDF; PDF renderer fetches user-supplied HTML resources

The fix

The PDF service was isolated in a subnet blocking public and internal network access, and risky HTML elements and JavaScript were disabled in the renderer.

How it was found

  1. Enter basic HTML in a billing profile field and export to PDF to confirm HTML is rendered.
  2. Inject an image tag pointing to an external collaborator URL and observe no outbound request.
  3. Use an iframe to localhost and see a blank area in the PDF.
  4. Fuzz localhost ports with Burp Intruder and note timing differences for SSH versus HTTP ports.
  5. Use an object element to fetch the local metrics endpoint and see it rendered in the PDF.
  6. Point the object element at the AWS metadata credentials path and read the role name and keys from the PDF.

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 let users put HTML into a form, and when it made a PDF it fetched whatever the HTML pointed to. Because the server could reach its own internal network and cloud metadata, the attacker could read secrets that should never be exposed.

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 T4nv1

View all

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