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

Expressway

20 Sep 2025 · 10 min read · root access
Expressway - maquina de Hack The Box

Executive summary — Expressway is an unusual Easy Linux box: almost the whole attack revolves around IKE/IPsec. Enumerating the service in Aggressive Mode we capture the PSK hash, crack it by dictionary, and the PSK turns out to be the password for user ike over SSH. Once inside, Squid logs reveal an internal hostname (offramp.expressway.htb) and a hand-installed copy of sudo under /usr/local/bin. That combination opens the door to CVE-2025-32462, a bypass of sudoers' host-matching via sudo's -h flag that lets a rule meant for another host be applied locally. Path: IKE PSK -> ike -> sudoers host bypass -> root.

PlatformHack The Box
Operating systemLinux
DifficultyEasy
StatusRetired
Target IP10.10.11.87

Attack map

[UDP 500] IKE/IPsec in Aggressive Mode -> leaks the PSK hash
   |  psk-crack (rockyou) -> cleartext PSK
   v
[SSH]  ike  (user.txt)  (the PSK is the password)
   |  sudo -l -> anomalous behaviour
   |  Squid logs -> internal hostname "offramp.expressway.htb"
   |  which sudo -> /usr/local/bin/sudo (vulnerable build, not the system one)
   v
[ROOT] CVE-2025-32462 (sudo -h sudoers host bypass) -> root

1. Reconnaissance

echo "10.10.11.87 expressway.htb" | sudo tee -a /etc/hosts

Before anything aggressive, a quick sweep with Nmap's default scripts confirms open ports and banners without too much noise.

nmap -v --script=default 10.10.11.87

With the ground covered, we go deeper with version/OS detection and full NSE:

nmap -v -A -sV 10.10.11.87
# 22/tcp open  ssh  OpenSSH 10.0p2 Debian 8

TCP has little more than SSH. Before attempting a login, we check which authentication methods it accepts —password, public key—, since that decides whether it's worth looking for a password elsewhere:

nmap -sV --script ssh-auth-methods -p 22 10.10.11.87

The real hint is on UDP: we check whether an IKE/IPsec service is listening on port 500.

sudo nmap -sU -p 500 10.10.11.87     # 500/udp open  isakmp

Environment note: during recon a tinyssh service was also observed on a different IP in the range; it's contextual lab-environment data, not part of this machine's attack path.

🔒 Clearance required

This content is Root Access only. Everything else on the site — the free tier, the whole public library — stays open.

See Root Access plans

No account? Create one free then upgrade from your console.