HAKATEMIA
01Intro

What are PDF export injections?

Easy20MIN

What are html2pdf generators?

Each of us has probably seen, when a web service offers the possibility to print a page or information, after which the browser downloads a PDF file to the computer. Creating this PDF file usually happens using some tool or programming library, which is used to build the document in question.

Some tools and programming libraries enable the construction of a PDF file using HTML code. This type of PDF generator can be called an html2pdf generator, as it takes HTML code as input and generates a PDF file from it. One such tool is wkhtmltopdf.

The tool accepts HTML code, executes the code using a browser engine (essentially opening the page invisibly with something like Google Chrome browser) and then generates a PDF file from the executed HTML code. However, this poses a danger.

1 / 5
Hakatemia Pro

Learn to hack — start here

Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.