dvwa updated
This commit is contained in:
parent
8f3c3af4fb
commit
c37af6fc80
84 changed files with 1873 additions and 605 deletions
|
|
@ -13,6 +13,11 @@ $page[ 'source_button' ] = 'xss_s';
|
|||
|
||||
dvwaDatabaseConnect();
|
||||
|
||||
if (array_key_exists ("btnClear", $_POST)) {
|
||||
$query = "TRUNCATE guestbook;";
|
||||
$result = mysqli_query($GLOBALS["___mysqli_ston"], $query ) or die( '<pre>' . ((is_object($GLOBALS["___mysqli_ston"])) ? mysqli_error($GLOBALS["___mysqli_ston"]) : (($___mysqli_res = mysqli_connect_error()) ? $___mysqli_res : false)) . '</pre>' );
|
||||
}
|
||||
|
||||
$vulnerabilityFile = '';
|
||||
switch( $_COOKIE[ 'security' ] ) {
|
||||
case 'low':
|
||||
|
|
@ -36,7 +41,7 @@ $page[ 'body' ] .= "
|
|||
<h1>Vulnerability: Stored Cross Site Scripting (XSS)</h1>
|
||||
|
||||
<div class=\"vulnerable_code_area\">
|
||||
<form method=\"post\" name=\"guestform\" onsubmit=\"return validate_form(this)\">
|
||||
<form method=\"post\" name=\"guestform\" \">
|
||||
<table width=\"550\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">
|
||||
<tr>
|
||||
<td width=\"100\">Name *</td>
|
||||
|
|
@ -48,7 +53,10 @@ $page[ 'body' ] .= "
|
|||
</tr>
|
||||
<tr>
|
||||
<td width=\"100\"> </td>
|
||||
<td><input name=\"btnSign\" type=\"submit\" value=\"Sign Guestbook\" onClick=\"return checkForm();\"></td>
|
||||
<td>
|
||||
<input name=\"btnSign\" type=\"submit\" value=\"Sign Guestbook\" onclick=\"return validateGuestbookForm(this.form);\" />
|
||||
<input name=\"btnClear\" type=\"submit\" value=\"Clear Guestbook\" onClick=\"return confirmClearGuestbook();\" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>\n";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue