dvwa updated
This commit is contained in:
parent
8f3c3af4fb
commit
c37af6fc80
84 changed files with 1873 additions and 605 deletions
20
dvwa/vulnerabilities/xss_d/source/high.php
Normal file
20
dvwa/vulnerabilities/xss_d/source/high.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
// Is there any input?
|
||||
if ( array_key_exists( "default", $_GET ) && !is_null ($_GET[ 'default' ]) ) {
|
||||
|
||||
# White list the allowable languages
|
||||
switch ($_GET['default']) {
|
||||
case "French":
|
||||
case "English":
|
||||
case "German":
|
||||
case "Spanish":
|
||||
# ok
|
||||
break;
|
||||
default:
|
||||
header ("location: ?default=English");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue