image.png

172.25.200.200:9032 Web

Want to run this Docker container locally?

docker run -d -p 9032:80 --name flag-red6 --restart always joshbeck2024/ctf-pam_deny-flag-red6

image.png

Open the webpage dev.php.txt using Firefox.

Untitled

Here’s a breakdown of the code:

If an end user can inject/control values within a .php the website owners are going to have a bad time.

Key Sec+ Term: (LFI: Local File Inclusion) Let’s see if we can view files on the local system via this webpage.

In the web browser, go to this URL:

http://ip_address:9032/dev.php?file=/etc/passwd

Untitled

LFI successful! Let’s see if we can jump straight to the flag.