dvwa updated
This commit is contained in:
parent
8f3c3af4fb
commit
c37af6fc80
84 changed files with 1873 additions and 605 deletions
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
<h3>High Level</h3>
|
||||
<p>Once the file has been received from the client, the server will try to resize any image that was included in the request.</p>
|
||||
<pre>Spoiler: <span class="spoiler">need to link in another vulnerability, such as file includion</span>.</pre>
|
||||
<pre>Spoiler: <span class="spoiler">need to link in another vulnerability, such as file inclusion</span>.</pre>
|
||||
|
||||
<br />
|
||||
|
||||
|
|
|
|||
|
|
@ -33,12 +33,12 @@ require_once DVWA_WEB_PAGE_TO_ROOT . "vulnerabilities/upload/source/{$vulnerabil
|
|||
|
||||
// Check if folder is writeable
|
||||
$WarningHtml = '';
|
||||
if( is_writable( realpath( dirname( dirname( getcwd() ) ) ) . "/hackable/uploads/" ) == false ) {
|
||||
$WarningHtml .= "<div class=\"warning\">Incorrect folder permissions: " . realpath( dirname( dirname( getcwd() ) ) ) . "/hackable/uploads/" . "<br /><em>Folder is not writable.</em></div>";
|
||||
if( !is_writable( $PHPUploadPath ) ) {
|
||||
$WarningHtml .= "<div class=\"warning\">Incorrect folder permissions: {$PHPUploadPath}<br /><em>Folder is not writable.</em></div>";
|
||||
}
|
||||
// Is PHP-GD installed?
|
||||
if( ( !extension_loaded( 'gd' ) || !function_exists( 'gd_info' ) ) ) {
|
||||
$WarningHtml .= "<div class=\"warning\">The PHP module <em>PHP-GD is not installed</em>.</div>";
|
||||
$WarningHtml .= "<div class=\"warning\">The PHP module <em>GD is not installed</em>.</div>";
|
||||
}
|
||||
|
||||
$page[ 'body' ] .= "
|
||||
|
|
@ -48,7 +48,7 @@ $page[ 'body' ] .= "
|
|||
{$WarningHtml}
|
||||
|
||||
<div class=\"vulnerable_code_area\">
|
||||
<form enctype=\"multipart/form-data\" action=\"#\" method=\"POST\" />
|
||||
<form enctype=\"multipart/form-data\" action=\"#\" method=\"POST\">
|
||||
<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"100000\" />
|
||||
Choose an image to upload:<br /><br />
|
||||
<input name=\"uploaded\" type=\"file\" /><br />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue