PaperWork
writeupPAPERWORK Writeup
Machine: Paperwork
OS: Linux
Difficulty: Easy
Summary
Paperwork is a Linux machine. It runs an intranet web page on port 80 and a custom Line Printer Daemon (LPD) service on port 1515. The LPD service drops a user-controlled job name straight into a shell command, so we get command execution on the box as the lp user. From there, a loopback-only PJL (Printer Job Language) server has a path-traversal file read/write; we use it to plant an SSH key and move across to archivist. Finally, a root daemon leaks a privileged file descriptor over a Unix socket, and that hands us root.
