Skip to content

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

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

Show 5 moreShow fewer

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.

Year by year

3 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2025: 22
Reports per year
20081
20151
20163
20172
20201
20212
20222
20232
20244
202522
202612
  1. 2026

    12 reports

    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.
  2. 2025

    22 reports

    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.
    and 1 more

    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.
    and 2 more
  3. 2024

    4 reports

    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

Every point, year by year

Root causes

5

The mistakes in the code or configuration behind the reports.

  1. The PDF generator rendered user-supplied HTML without sanitisation, allowing iframes to load local files and internal URLs.

    Seen in 2 reports
  2. 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
  3. The image fetcher followed redirects without restricting the destination scheme or host.

    Seen in 1 report
  4. 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
  5. 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
More in Cloud metadata and credential exposure

PDF generation from user-supplied HTML

of 3 ticked
  • Seen in 3 reports
  • Seen in 3 reports
  • Seen in 2 reports
More in PDF generation from user-supplied HTML

Internal network and localhost filter bypasses

of 3 ticked
More in Internal network and localhost filter bypasses

Headless browser and renderer engines

of 3 ticked
More in Headless browser and renderer engines
View more things to try

Bypasses and variations

2

How reports got past filters, encoders and other defences.

  1. 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
  2. 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.

    Seen in 1 report

Payouts

7 paid

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

SeverityReportsPaidMedianHighest
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

Tips for beginners

13

Advice for a first hunt, drawn from the reports.

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
View all 13

Guides and techniques

The best explainers, cheat sheets and technique posts on SSRF through PDF or image rendering, from around the web.

Keep learning

Where this lesson fits, and what to read next.

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.