Adhyan Agarwal logoadhyan agarwal
BACK TO ARCHIVE
HTB|2026.06.23

Orion — Craft CMS Preauth RCE to telnet Forwarded-Login Root

OS

Linux

Difficulty

Easy

Category

WEB

Released

2026.06.23

Popped a www-data shell through the unauthenticated Craft CMS RCE (CVE-2025-32432) using its Metasploit module, then grabbed cleartext DB creds out of Craft's .env and cracked adam's bcrypt hash to SSH in. Rooted a loopback GNU inetutils telnet daemon (CVE-2026-24061) where setting USER='-f root' forces a passwordless forwarded login.

Want to try this box yourself?

Spoiler-free mode is on by default — every solution stays hidden behind a reveal. Peek the hints, attempt each step, then unlock the answer when you're stuck. Turn it off to read every solution inline.

Nmap

Full Port Scan

Script and Service Scan

Web Enumeration

The web page is for a telecom company called Orion Telecom.

Orion Telecom homepage

A subdirectory ffuf scan shows an admin endpoint; this is most likely a login page.

Browsing to http://orion.htb/admin, we am redirected to /admin/login, confirming our guess.

Craft CMS admin login

The version information at the bottom can be used to find existing vulnerabilities in the Craft CMS application.

A quick Google search points us to CVE-2025-32432, an unauthenticated RCE. There's a ready-made module for it in msfconsole.

Initial Foothold

Find and load the module:

We get a shell.

To get a TTY shell, we need a reverse shell from the Meterpreter session.

Lateral Movement

The shell lands in the directory ~/html/craft/web.

Looking in the directory:

The most interesting file here is the hidden .env file. Reading it:

The file has cleartext credentials for the MySQL database. The credentials are root:SuperSecureCraft123Pass! and the database is orion.

Log in to the database:

Read the orion database to check for any passwords:

We get a bcrypt hash for the user adam.

Hash: $2y$13$e9zuohgFZzGtbQalcn9Mz.5PJbjxobO0GMbXo8NHp3P/B42LUg0lS

Using hashcat to crack the hash:

We get the credentials adam:darkangel.

We can now SSH into the machine as adam.

Privilege Escalation

The user adam can't run anything as root, confirmed with sudo -l.

Looking at the open local ports:

Telnet is open, which is very rare. Let us look at the version.

From a quick Google search, we can see that this version of telnet is vulnerable to CVE-2026-24061.

We found a GitHub PoC for this vulnerability.

Exploit:

The root flag is in root's home directory.

Rooted — user and root flags captured