Pdfy Htb Writeup Upd Instant

Entering a standard URL like http://google.com confirms the functionality—the application fetches the page and returns a PDF version of it.

As noted in the official HTB discussion , beginners often overcomplicate this by trying to get a shell, but the goal is purely a file leak.

The wkhtmltopdf engine follows the redirect and reads the local file. The content of /etc/passwd is rendered into the PDF. pdfy htb writeup upd

Since the application blocks direct file:// or localhost inputs, the standard bypass is to host a malicious script on your own server. This script will redirect the wkhtmltopdf engine to the local file you want to read.

Upon launching the challenge, you are greeted with a simple web interface that prompts for a URL. The application’s stated purpose is to "turn your favorite web pages into portable PDF documents". Entering a standard URL like http://google

This is a known command-line tool that uses the WebKit rendering engine to convert HTML to PDF. Crucially, older versions of this tool are vulnerable to SSRF because they follow redirects and execute JavaScript.

Download the resulting PDF. Inside, you will see the text content of the server's password file. Scroll through the entries to find the HTB flag, which is typically appended as a comment or a user entry. The content of /etc/passwd is rendered into the PDF

Official PDFy Discussion - Page 2 - Challenges - Hack The Box

Leak the contents of /etc/passwd to retrieve the hidden flag. Primary Vulnerability: SSRF via the wkhtmltopdf tool. 1. Initial Enumeration