A walkthrough of the HackTheBox machine 'Expressway', a Linux box exposing SSH and an IKE VPN service. The attack chain starts with ike-scan in aggressive mode to leak the VPN identity and capture a pre-shared key hash, which hashcat cracks in seconds. The cracked PSK doubles as SSH credentials. For privilege escalation, two sudo CVEs are demonstrated: CVE-2025-32463 (chroot option loads attacker-controlled nsswitch.conf and malicious shared library) and CVE-2025-32462 (hostname spoofing via -h flag bypasses sudoers host restrictions). A bonus section covers connecting to the IPSec VPN with strongSwan and examining the sudoers config that enabled the exploits.

18m read timeFrom 0xdf.gitlab.io
Post cover image
Table of contents
Box InfoReconShell as ikeShell as rootBeyond Root

Sort: