Post

Ignite

Writeup for the TryHackMe machine Ignite

Ignite

Recon

nmap

nmap finds one open port: HTTP (80).

1
2
3
4
5
80/tcp open  http    Apache httpd 2.4.18 ((Ubuntu))
| http-robots.txt: 1 disallowed entry
|_/fuel/
|_http-title: Welcome to FUEL CMS
|_http-server-header: Apache/2.4.18 (Ubuntu)

HTTP - TCP 80

The website is running Fuel CMS version 1.4. A quick search for known vulnerabilities leads to this Remote Code Execution (RCE) exploit.

Shell as www-data

I use the script from ExploitDB to obtain a shell as the www-data user.

1
$ python3 50477.py -u "http://ignite.thm/"

Shell as root

I inspect the application files and find database credentials in /var/www/html/fuel/application/config/database.php:

1
2
3
4
'hostname' => 'localhost',
'username' => 'root',
'password' => '<REDACTED>',
'database' => 'fuel_schema',

I use the database password to switch to the root user.

This post is licensed under CC BY 4.0 by the author.