Explore how PHP applications handle request parameters, files, uploads, and includes. Each challenge runs at http://challenge.localhost/ after you start /challenge/server. The application source is in /challenge/www/.


PHP exposes URL query parameters through the $_GET array. This application compares secret with a string stored in its source before revealing the flag. Read /challenge/www/index.php, satisfy the check, and get the flag. Run /challenge/server, then interact with http://challenge.localhost/.

Passing a user-controlled path to PHP's readfile() lets the requester choose what the server reads. This application offers a file viewer through the file URL parameter. Use it to retrieve the flag. Run /challenge/server, then interact with http://challenge.localhost/.

Saving uploaded files inside the web root makes them reachable through the web server. When the server treats an uploaded file as PHP, requesting it executes the file's code with the application's permissions. Use this upload form to recover the flag. Run /challenge/server, then interact with http://challenge.localhost/.

The upload handler now rejects filenames ending in .php. Compare its filename check with the web server's handler configuration, and find a filename they interpret differently. Upload a file that recovers the flag. Run /challenge/server, then interact with http://challenge.localhost/.

PHP's include evaluates PHP code in the selected file and outputs content outside PHP tags. Letting a request choose that file gives the requester control over what the application includes. This application selects a page through the page URL parameter. Use it to recover the flag. Run /challenge/server, then interact with http://challenge.localhost/.


30-Day Scoreboard:

This scoreboard reflects solves for challenges in this module after the module launched in this dojo.

Rank Hacker Badges Score