Pdfy Htb | Writeup Upd
If using wkhtmltopdf in production, ensure it is updated and configured with --disable-local-file-access to prevent this exact type of leak.
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.
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. pdfy htb writeup upd
By inspecting the metadata of the generated PDF files (using tools like exiftool or by looking at the PDF's properties), you can identify the backend engine: .
If you are running this locally, you must expose your server to the internet so the HTB challenge instance can reach it. Using a Reverse Proxy or tools like Serveo is recommended over ngrok for this specific challenge to avoid browser warning screens that might break the automated PDF rendering. If using wkhtmltopdf in production, ensure it is
You need a way to serve a 302 Redirect . You can use a simple PHP script or a Python server to achieve this. Use code with caution. Step B: Expose Your Server
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 Scroll through the entries to find the HTB
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".
Always validate and sanitize user-provided URLs. Blacklisting "localhost" or "file://" is rarely sufficient, as redirects can often bypass these filters.
Official PDFy Discussion - Page 2 - Challenges - Hack The Box
Bài viết liên quan
Tổng Hợp Điểm Mới Thông Tư 99/2025/TT-BTC: Cẩm Nang Chuyển Đổi Kế Toán 2026
Hướng Dẫn Hạch Toán Hàng Cho Biếu Tặng & Xuất Hóa Đơn Theo Thông Tư 99/2025/TT-BTC
Hướng Dẫn Hạch Toán Công Ty Dịch Vụ Vận Tải Theo Thông Tư 99/2025/TT-BTC