docker-vulnerable-dvwa/dvwa/vulnerabilities/fi/source/high.php
2016-12-02 17:19:11 -02:00

14 lines
236 B
PHP

<?php
// The page we wish to display
$file = $_GET[ 'page' ];
// Input validation
if( !fnmatch( "file*", $file ) && $file != "include.php" ) {
// This isn't the page we want!
echo "ERROR: File not found!";
exit;
}
?>