Vulnerability Capstone
Overview — The capstone of TryHackMe's Vulnerability Research module. A fictional company, Ackme Support Incorporated, wants its new blog audited before publishing. There is no new technique to learn: the room tests whether you can run the whole research loop yourself, which is identify the application and version, map it to a CVE, find a public exploit, adapt it and use it, ending with a flag read from a home directory.
| Platform | TryHackMe |
| Category | Offensive |
| Difficulty | Easy |
| Room | Vulnerability Capstone |
Attack map
nmap -sV -sC -> 80/HTTP "Welcome to FUEL CMS"
|
v
Browse the site -> application: Fuel CMS, version 1.4
|
v
Search the web / NVD -> CVE-2018-16763 (RCE)
|
v
searchsploit -> public exploit 47138 (edit target, run)
|
v
Command execution as www-data -> /home/ubuntu/flag.txt
Task 1 — Introduction
The brief is a typical audit scenario: the client has a new blog and wants to know what an attacker could do with it before real articles go live. The module this room closes covers how vulnerabilities are catalogued (CVE identifiers, NVD scores), where exploits are published (Exploit-DB and local mirrors such as searchsploit), and how to weigh and run them. The capstone asks you to chain those skills without hints on commands.
A practical note from the room: the machine takes a few minutes to boot fully, so scanning it immediately can produce empty or misleading results. Wait five minutes after starting it.
Task 2 — Exploit the Machine
Step 1: fingerprint the target
Start with service and version detection plus the default scripts. Version information is the raw material of vulnerability research, because CVEs are filed against specific product versions:
sudo nmap -sV -sC MACHINE_IP
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 8.2p1 Ubuntu 4ubuntu0.11 (Ubuntu Linux; protocol 2.0)
80/tcp open http Apache httpd 2.4.41 ((Ubuntu))
| http-robots.txt: 1 disallowed entry
|_/fuel/
|_http-title: Welcome to FUEL CMS
SSH on 22 is a login service with no obvious flaw in this version, so it is not the way in. The web server is where an application lives. Both the page title and the robots.txt entry mention Fuel, and the home page itself displays the version.
Q: What is the name of the application running on the vulnerable machine?
A: Fuel CMS
Q: What is the version number of this application?
A: 1.4
Step 2: map the product to a CVE
Searching for the product, its version and the impact you are after (here "Fuel CMS 1.4 remote code execution") leads straight to the National Vulnerability Database. The relevant entry describes PHP code evaluation through the filter parameter of the pages selector, reachable before logging in. The Exploit-DB metadata for the matching exploit confirms the same identifier, which is a good cross-check: always confirm that CVE, affected-version range and exploit all agree before spending time on an exploit.
Q: What is the number of the CVE that allows an attacker to remotely execute code on this application?
A: CVE-2018-16763
Step 3: get and read the exploit
searchsploit fuel cms 1.4
searchsploit -m 47138
Several entries come back. The three titled Remote Code Execution target 1.4.1 and earlier; the SQL injection ones need an authenticated session, so they are not relevant for a first foothold. Note that the exploit header says version <= 1.4.1, which covers the 1.4 shown by the site. Mirroring with -m copies the file locally so you can open it before running it, which you should always do: public exploit code is untrusted, and it usually needs adjusting.
Step 4: adapt and run it
This script needs three adjustments:
- Set its
urlvariable to the target (including port 80). - Either delete the proxy dictionary and
proxies=argument, or start Burp on127.0.0.1:8080with interception off; otherwise every request fails. - It is Python 2 code. Run it with
python2, or theprint r.text...line raises a syntax error under Python 3.
python2 47138.py
cmd:id
uid=33(www-data) gid=33(www-data) groups=33(www-data)
The response is wrapped in PHP error output, since the injected code runs inside the application's own expression and breaks it afterwards. The useful text is the command output after thesystemmarker. We now execute commands aswww-data, the web server account.
Step 5: read the flag
The task states where the flag lives, so a directory listing and a cat are enough:
cmd:cd /home/ubuntu;ls
cmd:cat /home/ubuntu/flag.txt
Q: What is the value of the flag located on this vulnerable machine? (in /home/ubuntu)
A: FLAG
Each command in the prompt is a separate request, so a cd does not persist to the next line; that is why the second command uses an absolute path.
Quick reference
| Step | Tool / source | Result in this room |
|---|---|---|
| Fingerprint | nmap -sV -sC | Apache on port 80 titled "Welcome to FUEL CMS" |
| Identify application | Browsing the site | Fuel CMS, version 1.4 |
| Map to a CVE | Web search / NVD | CVE-2018-16763 (RCE) |
| Find an exploit | searchsploit | Public exploit 47138 (edit target, run) |
| Impact | Command execution | Shell as www-data, flag read from a home directory |
Key takeaways
- Vulnerability research is a pipeline: version fingerprint → CVE → exploit → adapt → execute. Each link must agree with the previous one.
- Version banners and default pages are information leaks; hide or remove them in production.
- Read and adapt public exploits instead of running them blindly. Targets, proxies and language versions often need editing.
- CVE-2018-16763 is an unauthenticated PHP code injection fixed in Fuel CMS 1.4.2, a clear example of why CMS patching and removing unused admin paths matter.
- For defenders, a pre-publication audit like this one is exactly where an outdated component is cheap to find and replace.