Outbound
DonutMaster9/2/20261 min read
#machines#htb#easy#roundcube-webmail-deserializat#3des-session-decryption#roundcube-session-database-ext#sudo/below-symlink-privilege-e#cve-2025-49113#cve-2025-27591#linux
Outbound
Platform: HackTheBox | Category: Machines | Type: Machine | Difficulty: Easy | OS: Linux | Author: DonutMaster | Date: 2025-11-16 | Status: Solved Techniques: Roundcube Webmail Deserialization RCE (CVE-2025-49113), 3DES Session Decryption, Roundcube Session Database Extraction, Sudo/Below Symlink Privilege Escalation (CVE-2025-27591)
Summary
Walkthrough of the HackTheBox Easy machine Outbound (Linux). Foothold via Roundcube Webmail RCE (CVE-2025-49113) using provided initial credentials (tyler). Lateral movement via database config keys and 3DES session decryption to extract credentials for jacob. Privilege escalation via CVE-2025-27591 (below command symlink to /etc/passwd).
Recon
Port Scan
bash read-only • copy allowedrustscan -a outbound.htb -- -A
| Port | Service | Version | Notes |
|---|---|---|---|
| 22/tcp | ssh | OpenSSH 9.6p1 | Standard SSH |
| 80/tcp | http | Nginx 1.24.0 | Redirects to mail.outbound.htb |
Foothold
Exploitation (CVE-2025-49113)
- Navigate to Roundcube Webmail (
mail.outbound.htb) and log in with provided credentials (tyler / LhKL1o9Nm3X2). - Exploit Roundcube remote code execution vulnerability (CVE-2025-49113) using public exploit scripts to achieve RCE as
www-data. - Switch user to
tylerusing stored credentials.
Privilege Escalation
Lateral Movement & Root
- Inspect Roundcube configuration
config.inc.phpfor database credentials anddes_key. - Query MySQL
roundcubedatabase session table, decrypt 3DES session data usingdes_keyto retrieve credentials forjacob. - SSH in as
jacob. - Exploit
belowbinary privilege escalation vulnerability (CVE-2025-27591) by setting a symlink from/var/log/below/error_root.logto/etc/passwdto append a root user line.
Flags
| Flag | Location | Value |
|---|---|---|
| user | /home/jacob/user.txt | REDACTED |
| root | /root/root.txt | REDACTED |
Key Takeaways / Lessons
- Keep webmail software like Roundcube patched against gadget-chain deserialization and RCE vulnerabilities.
- Ensure proper file permission checks on log directories exposed to sudo-enabled administrative binaries.