first commit
This commit is contained in:
parent
985a5c928c
commit
f40a84879c
551 changed files with 72374 additions and 24 deletions
13
dvwa/vulnerabilities/fi/source/high.php
Normal file
13
dvwa/vulnerabilities/fi/source/high.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?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;
|
||||
}
|
||||
|
||||
?>
|
||||
13
dvwa/vulnerabilities/fi/source/impossible.php
Normal file
13
dvwa/vulnerabilities/fi/source/impossible.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?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;
|
||||
}
|
||||
|
||||
?>
|
||||
6
dvwa/vulnerabilities/fi/source/low.php
Normal file
6
dvwa/vulnerabilities/fi/source/low.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
// The page we wish to display
|
||||
$file = $_GET[ 'page' ];
|
||||
|
||||
?>
|
||||
10
dvwa/vulnerabilities/fi/source/medium.php
Normal file
10
dvwa/vulnerabilities/fi/source/medium.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
// The page we wish to display
|
||||
$file = $_GET[ 'page' ];
|
||||
|
||||
// Input validation
|
||||
$file = str_replace( array( "http://", "https://" ), "", $file );
|
||||
$file = str_replace( array( "../", "..\"" ), "", $file );
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue