Adhyan Agarwal logoadhyan agarwal
BACK TO ARCHIVE
HTB|2026.07.11

Paperwork — LPD Print-Daemon Injection & PJL Traversal to SCM_RIGHTS Root

OS

Linux

Difficulty

Easy

Category

LINUX

Released

2026.07.11

Exploited an unsanitized job-name in the intake portal's leaked LPD print daemon (echo built with shell=True) for command injection, driving the full LPD control-file handshake from a raw socket to land a shell as lp. Abused a second jetdirect service on 9100 whose PJL FSDOWNLOAD never stripped ../ to write an SSH key as archivist, then rooted a daemon that leaks a root-opened descriptor to admin_pins.conf over SCM_RIGHTS.

Write-up LockedMachine Active

This machine is still active on Hack The Box, so the full technical write-up is withheld until it retires — per HTB’s published content policy:

“You are only permitted to upload, stream videos, and publish solutions in any format for Retired Content of Hack The Box or Free Academy Courses.”

“Any streaming or publication of Hack The Box Content solutions not mentioned in the list above violates our TOS.”

— Streaming / Writeups / Walkthrough Guidelines, Hack The Box

Releases automatically once the machine retires.

Hack The Box owned screenshot for Paperwork