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

Barrier

12 Feb 2026 · 8 min read · root access
Barrier — Hack The Box machine

Executive summary — Barrier chains a credential leak in a public repository, a SAML signature bypass (CVE-2024-45409) in GitLab, abuse of a privileged authentik API token, single sign-on (SSO) into a remote-access broker (Apache Guacamole) and, to finish, credential reuse: an encrypted SSH key stored in Guacamole's database and a sudo password left in ~/.bash_history.

PlatformHack The Box
Operating systemLinux
DifficultyMedium
StatusRetired
Target IP10.129.234.46

Attack map

[80/443] GitLab 17.3.2 (gitlab.barrier.vl) — public repo satoru/gitconnect
   │  satoru's password in the git history
   ▼
[SAML] CVE-2024-45409 (ruby-saml) — signature wrapping, SSO with authentik
   │  CI/CD runner (tag auto_5e7f) -> AUTHENTIK_TOKEN variable
   ▼
[9000] authentik 2024.10.5 — akadmin API token
   │  set_password on maki -> SAML SSO into Guacamole
   ▼
[8080] Guacamole — REST API -> maki's private SSH key
   ▼
[SSH]  maki  (user.txt)
   │  guacamole.properties -> MariaDB -> Maki_Adm connection (key + passphrase)
   ▼
[SSH]  maki_adm (admin group)
   │  ~/.bash_history leaks the sudo password
   ▼
[ROOT]  sudo su

1. Reconnaissance

sudo nmap -p- --min-rate 3000 -T4 -n -Pn 10.129.234.46

Warning and lesson. The first -p- at 3000 packets per second tripped nmap's retransmission cap (giving up on port because retransmission cap hit) and missed ports 80 and 443, reporting only 22, 8080, 9000 and 9443. A targeted rescan with --min-rate 500 revealed the missing ones. Always double-check the "obvious" ports (80/443) with a slower scan when -p- warns about drops.

PortServiceDetail
22/tcpSSHOpenSSH 8.9p1 Ubuntu 3ubuntu0.13 (host key is ssh-rsa only)
80/tcpHTTPnginx → 301 to https://gitlab.barrier.vl
443/tcpHTTPSnginx (GitLab)
8080/tcpHTTPApache Tomcat 9 → Apache Guacamole at /guacamole/
9000/tcpHTTPauthentik 2024.10.5 (SSO IdP)
9443/tcpHTTPSauthentik 2024.10.5

The redirect to gitlab.barrier.vl means the vhost has to be registered:

echo "10.129.234.46 barrier.vl gitlab.barrier.vl" | sudo tee -a /etc/hosts

Seen later from the inside, the layout is this: the host runs SSH, MariaDB (127.0.0.1:3306, database guac_db) and Tomcat with Guacamole; Docker runs GitLab, authentik (server, worker, PostgreSQL and Redis) and a gitlab-runner. This matters because authentik runs in a container: an RCE inside authentik does not reach the host, and the right pivot to the host is Guacamole.

🔒 Clearance required

Root Access unlocks the content you can't see — everything else on the site is already open.

See Root Access plans

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