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

11 lines
222 B
PHP

<?php
// The page we wish to display
$file = $_GET[ 'page' ];
// Input validation
$file = str_replace( array( "http://", "https://" ), "", $file );
$file = str_replace( array( "../", "..\"" ), "", $file );
?>