In-depth lesson · SSRF through PDF or image rendering
Tips for beginners
Every point the SSRF through PDF or image rendering reports back under this heading, best-backed first, each with the reports it is seen in.
-
Start with features that turn your content into a document or image: PDF export buttons, invoice and packing slip generators, email template previews, analytics report exports, image URL parameters and SVG upload or conversion endpoints. These are the places the evidence shows this turning up most often.
Seen in 5 reports
-
Aim at cloud metadata and internal services to show impact, but only after confirming the fetch works. Reports show access to cloud instance metadata, cloud data stores and full cloud credential theft. Internal HTTPS endpoints such as the Kubernetes API have also been reached through rendered iframes.
Seen in 4 reports
-
Try different renderer technologies. The evidence covers headless Chrome, PhantomJS, ASP.NET PDF generation, HTML to PDF converters and SVG-to-PDF renderers. Each may have different filters and bypasses.
Seen in 4 reports
-
Before testing, check the program's scope. One report notes testing a PDF export feature that sat outside the stated scope and checking whether the impact still qualified. Reporting something out of scope is a common mistake.
Seen in 1 report
-
Use a host you control to confirm the server is making the request. Submit an SVG with an iframe pointing at your host to a conversion endpoint, note the source IP and renderer user agent, then replace the iframe source with an internal or metadata address. This shows the fetch is real before you aim it at something sensitive.
Seen in 1 report
-
Try user-editable fields that end up in a generated document, not just obvious template editors. A billing address field rendered into a PDF invoice and a form field carried into a generated PDF have both been used. Put markup in the field and check whether the renderer fetches resources from it.
Seen in 1 report
-
Test error paths as well as success paths. A template value interpolated into an error string without sanitisation was passed to a PDF renderer that fetched embedded resources. A missing-template error can echo the unsanitised value and trigger the fetch.
Seen in 1 report
-
$25,000 Critical
-
-
If a filter blocks iframe tags, try a crafted prefix so the sanitiser misses it and the iframe still renders. This bypass is documented in the evidence and is worth trying when a template editor filters markup.
-
If a fetcher rejects a scheme directly, try a redirect from your own server to reach a protocol it would not accept. Confirm the server still makes the request to the final destination.
Seen in 1 report
-
$1,000 High
-
-
For upload handlers, try an SVG disguised with an image file extension and a mismatched part content type, referencing an external host from inside it. Watch for a DNS lookup or HTTP request from the server even when the upload is rejected.
Seen in 1 report
-
For blind cases, plan how you will exfiltrate data through the renderer before you report. Blind SSRF without a demonstrated impact is a common mistake. The evidence includes blind SSRF where data was exfiltrated through the renderer.
Seen in 1 report
-
Check whether a PDF file can expose the application's real IP behind a CDN and WAF. This is a lower-impact finding but can be useful context and is documented in the evidence.
-
When you find a fetch, show what it reached. A proxy error page in the exported PDF revealed internal hostnames and software versions. That kind of concrete evidence is stronger than a bare DNS lookup.
Seen in 1 report