Skip to content
Snippets Groups Projects
Commit c1bdac85 authored by Robin Wood's avatar Robin Wood
Browse files

no impossible level

parent c49e7f75
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,17 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
}
}
if ( $_COOKIE[ 'security' ] == "impossible" ) {
$page[ 'body' ] = <<<EOF
<div class="body_padded">
<h1>Vulnerability: JavaScript Attacks</h1>
<div class="vulnerable_code_area">
<p>
You can never trust anything that comes from the user or prevent them from messing with it and so there is no impossible level.
</p>
EOF;
} else {
$page[ 'body' ] = <<<EOF
<div class="body_padded">
<h1>Vulnerability: JavaScript Attacks</h1>
......@@ -89,6 +100,7 @@ $page[ 'body' ] = <<<EOF
<input type="submit" id="send" name="send" value="Submit" />
</form>
EOF;
}
require_once DVWA_WEB_PAGE_TO_ROOT . "vulnerabilities/javascript/source/{$vulnerabilityFile}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment