root@thehacksparrow:~/writeups$ SYSTEM ONLINE
root@sparrow:~/writeups$ cat abducted.md
// writeups

Abducted

5 Jun 2026 · 18 min read · user access
Abducted - maquina de Hack The Box

Executive summary — Abducted exposes a Samba printer share (HP-Reception) writable by a guest user, vulnerable to CVE-2026-4480: a command injection in the print command via the print job's document name. This gives unauthenticated RCE as nobody. An «obscured» (not encrypted) rclone backup password is revealed and turns out to be reused by the real SSH account of scott. Another misconfigured share (wide links + force user) allows dropping an SSH key into marcus's $HOME through a symlink that escapes the share tree. Marcus belongs to the operators group, owner of a systemd drop-in directory for the smbd service — enough to inject an ExecStartPre that SUIDs bash when the service restarts.

PlatformHack The Box
Operating systemLinux
DifficultyMedium
StatusRetired
Target IP10.129.244.177

Attack map

[SMB] HP-Reception — guest write + unsanitized %J print command
   │  CVE-2026-4480 — command injection via RPC spoolss (document_name = "|sh")
   ▼
[RCE]  nobody (reverse shell)
   │  Obscured rclone credential (/opt/offsite-backup/rclone.conf) → rclone reveal
   ▼
[SSH]  scott@host
   │  transfer share: wide links + force user=marcus → symlink into marcus's $HOME
   │  marcus's authorized_keys written over SMB
   ▼
[SSH]  marcus@host  (operators group)
   │  Writable systemd drop-in in smbd.service.d
   │  ExecStartPre → chmod +s /bin/bash on smbd restart
   ▼
[ROOT]  bash -p

1. Reconnaissance

nmap 10.129.244.177 -sCV -A -oN abducted-default
PORT    STATE SERVICE     VERSION
22/tcp  open  ssh         OpenSSH 9.6p1 Ubuntu 3ubuntu13.16 (Ubuntu Linux; protocol 2.0)
139/tcp open  netbios-ssn Samba smbd 4
445/tcp open  netbios-ssn Samba smbd 4
...
|_nbstat: NetBIOS name: ABDUCTED, NetBIOS user: <unknown>, NetBIOS MAC: <unknown> (unknown)
| smb2-security-mode:
|   3:1:1:
|_    Message signing enabled but not required

Only two services exposed: SSH and Samba (file and print sharing). The NetBIOS name is ABDUCTED.

🔒 Free account required

This is USER ACCESS content — free to unlock, no payment. The rest of the write-up (and everything else at this level) opens up once you're signed in.

Create a free account