In-depth lesson · technique
SSRF through PDF or image rendering
What every disclosed SSRF through PDF or image rendering report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.
- reports cited in this lesson
- 42
- median public bounty
- $1,000
Overview
What it is and why programs pay for it.
Server-side request forgery through PDF or image rendering happens when a feature that turns user-supplied content into a document or picture makes the server fetch resources from addresses the user chooses. The renderer may load images, stylesheets, iframes or other embedded content, and if it is not restricted it will reach internal services, local files or cloud metadata. Programs care because these features are common in invoicing, reporting, ticketing and analytics, and the impact can range from internal network reconnaissance to cloud credential theft.
The usual root causes are unsanitised HTML or SVG passed to a renderer, filename extension trust in upload handlers, and fetchers that follow redirects without restricting scheme or host. A template value interpolated into an error string that is later rendered can also trigger fetching. These mistakes are most often found in PDF export buttons, invoice and packing slip generators, email template previews, analytics report exports, image URL parameters and SVG upload or conversion endpoints.
What it usually leads to depends on what the renderer can reach. Hunters have shown access to internal services, local files, cloud instance metadata and, in some cases, full cloud credential theft. The evidence also includes blind SSRF where data is exfiltrated through the renderer, and cases where a proxy error page in the exported PDF revealed internal hostnames and software versions.
Seen in these reports11
-
$25,000 Critical -
$2,150
-
$1,000 High
Show 5 moreShow fewer
-
$500
-
$400
-
$4,000 Critical -
$500 Low -
Medium
How it works
The mechanics, as the reports show them.
The feature accepts content from the user, such as an HTML email template, a packing slip template, a billing address field, an SVG upload or an image URL. That content is stored or passed to a rendering component, often a headless browser, a PDF converter or an SVG-to-PDF renderer. The renderer parses the content and, as part of normal rendering, fetches any external resources it references.
If the renderer does not restrict which hosts, IP ranges or schemes it can reach, the user can point those references at internal addresses, local files or cloud metadata endpoints. The server then makes the request from its own network position, and the response may be embedded in the generated document or observed through timing, DNS lookups or error pages.
Several variations make this possible. A fetcher that follows redirects without checking the destination scheme or host can be sent to a protocol it would not accept directly. An upload handler that trusts the filename extension and processes the file with an SVG-capable parser before validating the real content type can be tricked with a disguised SVG. A template value interpolated into an error string without sanitisation can be passed to a PDF renderer that then fetches embedded resources.
Filters can sometimes be bypassed. One report shows an HTML filter that blocked iframe tags being bypassed by prefixing the markup so the sanitiser missed it and the iframe still rendered in the generated PDF. Another shows a redirect from a controlled server being used to reach a protocol the fetcher would not accept directly.
The impact is demonstrated by what the renderer can reach. Hunters have used iframes in templates to read proxy error pages, injected script into form fields carried into a generated PDF to make the server fetch cloud instance metadata, and used SVG with foreignObject elements to target cloud metadata addresses. Blind cases require a way to exfiltrate data through the renderer.
Seen in these reports10
-
$1,000 High -
$2,150
-
$500 Low
Show 5 moreShow fewer
-
Medium -
Low -
$25,000 Critical -
$4,000 Critical -
$500
Year by year
3 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2008 | 1 |
|---|---|
| 2015 | 1 |
| 2016 | 3 |
| 2017 | 2 |
| 2020 | 1 |
| 2021 | 2 |
| 2022 | 2 |
| 2023 | 2 |
| 2024 | 4 |
| 2025 | 22 |
| 2026 | 12 |
-
2026
New this year2
- Blind SSRF with data exfiltration through PDF generators first appears in the disclosed reports.
- Full cloud credential theft through a PDF export button first appears in the disclosed reports.
Turned up less2
- Testing PDF generators for SSRF that merely reaches internal data was rarer in the disclosed reports than in the earlier years.
- Testing PDF generation on ASP.NET applications with filter bypasses was rarer in the disclosed reports than in the earlier year.
-
2025
New this year4
- Cloud metadata access through PDF renderer SSRF first appears clearly in the disclosed reports.
- Headless Chrome renderers and remote debugging exposure first appear as a testing angle in the disclosed reports.
- Testing PDF export features outside the stated scope and checking whether the impact still qualifies first appears in the disclosed reports.
Kept working4
- Testing PDF generation for SSRF through user-supplied HTML in PDF generators remained the dominant pattern in the disclosed reports.
- Testing PDF generation on ASP.NET applications for SSRF and trying filter bypasses worked in the disclosed reports.
-
2024
Kept working2
- Testing PDF generators for SSRF that reaches internal data was the main pattern in the disclosed reports.
- Using a PDF print feature to try to reach internal data through the renderer appeared in the disclosed reports.
Reports from 20241
Root causes
5The mistakes in the code or configuration behind the reports.
-
The PDF generator rendered user-supplied HTML without sanitisation, allowing iframes to load local files and internal URLs.
Seen in 2 reports
-
The upload handler trusted the filename extension and processed the file with an SVG-capable parser before validating the real content type.
Seen in 1 report
-
The image fetcher followed redirects without restricting the destination scheme or host.
Seen in 1 report
-
$1,000 High
-
-
A template value was interpolated into an error string without sanitisation, and that string was passed to a PDF renderer that fetched embedded resources.
Seen in 1 report
-
$25,000 Critical
-
-
The SVG-to-PDF renderer executed embedded HTML and fetched external resources without restricting which hosts or IP ranges could be reached.
Seen in 1 report
Things to try
The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.
ticked in this lesson
Cloud metadata and credential exposure
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
PDF generation from user-supplied HTML
of 3 ticked-
Seen in 3 reports
-
Seen in 3 reports
-
Seen in 2 reports
Internal network and localhost filter bypasses
of 3 tickedHeadless browser and renderer engines
of 3 ticked-
Seen in 2 reports
-
Seen in 1 report
-
Seen in 1 report
Bypasses and variations
2How reports got past filters, encoders and other defences.
-
Use a redirect from your own server to reach a protocol the fetcher would not accept directly, such as gopher, and confirm the server still makes the request.
Seen in 1 report
-
$1,000 High
-
-
Bypass an HTML filter that blocks iframe tags by prefixing the markup so the sanitiser misses it and the iframe still renders in the generated PDF.
Payouts
7 paidPublic bounties in US dollars, from the data. 7 of 81 reports show an amount.
- a quarter paid up to
- $500
- median
- $1,000
- three quarters paid up to
- $3,075
- highest
- $25k
One in ten paid reports was paid $12k or more.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| Critical | 2 | 2 | $15k | $25k |
| High | 3 | 1 | $1,000 | $1,000 |
| Medium | 2 | 0 | None paid | None |
| Low | 3 | 1 | $500 | $500 |
| Unrated | 71 | 3 | $500 | $2,150 |
Highest-paid reports5
-
$25,000 Critical -
$4,000 Critical -
$2,150
-
$1,000 High -
$500
Tips for beginners
13Advice for a first hunt, drawn from the reports.
-
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
Guides and techniques
The best explainers, cheat sheets and technique posts on SSRF through PDF or image rendering, from around the web.
-
Exploiting PDF generators: A complete guide to finding SSRF vulnerabilities in PDF generatorsPractical guide to finding and escalating SSRF in HTML to PDF generators, including blind cases and cloud metadata access.
Explainer intigriti.com
-
Hunting for SSRF Bugs in PDF GeneratorsExplains how PDF generation features can be probed for server side request forgery and how to exploit them.
Methodology blackhillsinfosec.com
-
SSRF: A complete guide to exploiting advanced SSRF vulnerabilitiesA deep SSRF guide covering host and protocol whitelist bypasses, PDF generator abuse, second-order and blind cases and DNS rebinding.
Methodology intigriti.com
-
Securing PDF Generators Against SSRF VulnerabilitiesShows how PDF generators can be abused for SSRF and how to harden them against internal network access.
Technique medium.com
Keep learning
Where this lesson fits, and what to read next.
The whole class
Related techniques
How this is made: our model read every listed SSRF through PDF or image rendering report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 27 Nov 2026 from 86 reports. All SSRF through PDF or image rendering reports.