Skip to content
SSRF Write-up Intermediate

How a $5,000 “Low Severity” Bug Turned Into the Ultimate Admi

A healthcare platform's PDF export feature rendered user-supplied HTML in a headless browser, allowing an attacker to inject an iframe that caused the server to fetch internal AWS metadata and expose temporary IAM credentials. The submitted PDF then executed in the security team's internal triage dashboard, extending the SSRF to their corporate network.

T4nv1 Follow

Published on medium.com

Every bug hunter knows the unwritten rule of public programs: if a target looks picked clean, you’re usually wasting your time.

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 generation service failed to sanitise user-controlled HTML before rendering it in a headless browser, allowing injection of active content like iframes.

Impact

The attacker could read internal AWS metadata and temporary IAM credentials, and because the submitted PDF was later processed by the security team's automated triage dashboard, the SSRF also executed inside their corporate internal network, potentially exposing credentials of the internal security engine.

What the attacker needed

A user account on the platform; ability to edit profile name; victim (or automated system) opens the PDF

The fix

The text states that both vulnerabilities were patched within hours after the lead security engineer quarantined the ticket.

How it was found

  1. Update profile name with an iframe pointing to an external server.
  2. Request a PDF export of account history.
  3. Observe the external server receiving a request from the PDF generator.
  4. Change the iframe source to the cloud metadata endpoint.
  5. Download and open the generated PDF to view the metadata output.

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.

When you export your medical history as a PDF, the website uses a hidden browser to turn your profile details into a document. The site did not clean up special formatting codes in your name, so an attacker could sneak in a command that made that hidden browser visit other computers on the company's private network. This let the attacker read secret passwords meant only for the company's cloud servers.

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.