dvwa updated
This commit is contained in:
parent
8f3c3af4fb
commit
c37af6fc80
84 changed files with 1873 additions and 605 deletions
14
dvwa/vulnerabilities/xss_d/source/medium.php
Normal file
14
dvwa/vulnerabilities/xss_d/source/medium.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
// Is there any input?
|
||||
if ( array_key_exists( "default", $_GET ) && !is_null ($_GET[ 'default' ]) ) {
|
||||
$default = $_GET['default'];
|
||||
|
||||
# Do not allow script tags
|
||||
if (stripos ($default, "<script") !== false) {
|
||||
header ("location: ?default=English");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue