A walkthrough of the VulnHub Prime 1 CTF machine, focusing on exploiting a Local File Inclusion (LFI) vulnerability. The process covers network reconnaissance with Nmap, directory enumeration with Dirb, discovering a WordPress installation, exploiting an LFI in image.php to read /etc/passwd, using found credentials to access WordPress, uploading a PHP reverse shell, and finally escalating privileges to root using a kernel exploit found via Searchsploit.
Table of contents
Vulnhub Prime: 1 — A Local File Inclusion (LFI) VulnerabilitySort: