PHDays 2013 CTF “Blade” Writeup

We have a simple form with login and password. There is an SQL injection, but a WAF blocks any attempt to bypass it. First step to solve this task was to reveal the contents of the script by requesting index.phps: <?php include ‘flag.php’; if (!isset($_POST[‘username’]) || !isset($_POST[‘password’])) { print <<<FORM <form method=POST> <input type=text name=username></input> […]