Skip to content

Pdfy Htb Writeup Upd |best| Jun 2026

This writeup explores , a web-based Hack The Box (HTB) challenge categorized as "Easy." This challenge is a classic introduction to Server-Side Request Forgery (SSRF) , demonstrating how an application that renders web pages into PDFs can be coerced into leaking sensitive internal files. Challenge Overview Category: Web Difficulty: Easy

Your server responds with a 302 Found status code directing the user agent to file:///etc/passwd .

→ Unsafe concatenation.

: Configure your underlying PDF utilities to ignore HTTP redirection headers so they do not follow unexpected third-party paths.

# Define the malicious file contents malicious_file = "JVBERi0xLjMK…(%PDF-1.3)…" pdfy htb writeup upd

After successfully generating the malicious PDF using any of the methods above, the contents of /etc/passwd will be displayed within the PDF. The flag for the challenge is embedded within this output. It will be a string formatted similarly to HTB... . The exact format and location can vary, so carefully scan the PDF's text content. Many walkthroughs note that the flag can be found immediately after a successful exploit.

If you are developing or maintaining applications that generate PDFs from web inputs, you can protect your systems with the following defensive practices: This writeup explores , a web-based Hack The

Check sudo:

The initial scan reveals a web server running on port 80. : Configure your underlying PDF utilities to ignore