Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://0xdf.gitlab.io/2026/03/07/htb-expressway.html Content Categories: Based on the analysis, this content was categorized under "Network Services Pentesting -> 500/udp - Pentesting IPsec/IKE VPN (Aggressive Mode PSK cracking with ike-scan/hashcat) AND Linux Privilege Escalation -> Sudo (add/update pages for CVE-2025-32463 --chroot/NSS injection and CVE-2025-32462 hostname spoofing -h bypass)". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
This post is a technical walkthrough of the Hack The Box machine Expressway (Linux). The exposed remote attack surface is essentially SSH (TCP/22) and IKE/IPsec (UDP/500), with a later-discovered TFTP service (UDP/69) that is hard to fingerprint with nmap and offers no directory listing. Initial access is achieved by abusing IKE Aggressive Mode to leak the VPN identity and capture a crackable IKE-PSK (SHA1) handshake, cracking it with hashcat (mode 54...
🔧 Technical Details
IKE Aggressive Mode reconnaissance can leak a VPN identity pre-authentication because the server must receive the identity early to select the correct PSK when multiple groups/users exist; unlike Main Mode (6 packets) where identity is encrypted later, Aggressive Mode (3 packets) sends identity in the first exchange. Using
ike-scan -Aplus--pskcrack=<file>captures an IKE-PSK SHA1 handshake that can be cracked offline withhashcat(auto-detected as mode5400) to recover the PSK; if credentials are reused, the PSK may also authenticate to other services like SSH.🎁 PoC / CVE-2025-32463: When sudo
--chrootenters an attacker-controlled root before policy evaluation completes (affected 1.9.14–1.9.17), glibc can read an attacker-supplied/etc/nsswitch.confinside the chroot and load attacker-chosen NSS modules as root. By settingpasswd: /NAMEin the chrootednsswitch.conf</code...🤖 Agent Actions
Summary
ike-scan -Aand hashcat-m 5400cracking workflow in the IPsec/IKE pentesting page, plus PSK reuse reminder and blog reference.sudo -husage) in the Linux privilege escalation page and appended the blog reference.Files Updated
src/network-services-pentesting/ipsec-ike-vpn-pentesting.mdsrc/linux-hardening/privilege-escalation/README.mdNotes
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.