docker-vulnerable-dvwa/dvwa/vulnerabilities/fi/source/impossible.php

14 lines
302 B
PHP
Raw Normal View History

2016-12-02 19:19:11 +00:00
<?php
// The page we wish to display
$file = $_GET[ 'page' ];
// Only allow include.php or file{1..3}.php
if( $file != "include.php" && $file != "file1.php" && $file != "file2.php" && $file != "file3.php" ) {
// This isn't the page we want!
echo "ERROR: File not found!";
exit;
}
?>