Exploit databaseDownload repository ZIP
GH-77a95e06b33c363c72a2bd291d0c8221
0xff0xfe/dvwa
Sources for CVE-2023-39848
53 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files20
0xff0xfe/dvwaRevision 686ecdd37506
- ↑..Parent directory
- authbypass/
- brute/
- captcha/
- cryptography/
- csp/
- csrf/
- exec/
- fi/
- javascript/
- open_redirect/
- sqli/
- sqli_blind/
- upload/
- weak_id/
- xss_d/
- xss_r/
- xss_s/
- view_help.php
- view_source.php
- view_source_all.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
vulnerabilities/view_help.php
PHP · 987 bytes<?php
define( 'DVWA_WEB_PAGE_TO_ROOT', '../' );
require_once DVWA_WEB_PAGE_TO_ROOT . 'dvwa/includes/dvwaPage.inc.php';
dvwaPageStartup( array( 'authenticated' ) );
$page = dvwaPageNewGrab();
$page[ 'title' ] = 'Help' . $page[ 'title_separator' ].$page[ 'title' ];
if (array_key_exists ("id", $_GET) &&
array_key_exists ("security", $_GET) &&
array_key_exists ("locale", $_GET)) {
$id = $_GET[ 'id' ];
$security = $_GET[ 'security' ];
$locale = $_GET[ 'locale' ];
ob_start();
if ($locale == 'en') {
eval( '?>' . file_get_contents( DVWA_WEB_PAGE_TO_ROOT . "vulnerabilities/{$id}/help/help.php" ) . '<?php ' );
} else {
eval( '?>' . file_get_contents( DVWA_WEB_PAGE_TO_ROOT . "vulnerabilities/{$id}/help/help.{$locale}.php" ) . '<?php ' );
}
$help = ob_get_contents();
ob_end_clean();
} else {
$help = "<p>Not Found</p>";
}
$page[ 'body' ] .= "
<div class=\"body_padded\">
{$help}
</div>\n";
dvwaHelpHtmlEcho( $page );
?>