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.
Every bug hunter knows the unwritten rule of public programs: if a target looks picked clean, you’re usually wasting your time.
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
- Update profile name with an iframe pointing to an external server.
- Request a PDF export of account history.
- Observe the external server receiving a request from the PDF generator.
- Change the iframe source to the cloud metadata endpoint.
- 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.