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

11 lines
222 B
PHP
Raw Normal View History

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