Exploit databaseDownload repository ZIP
GH-5096af53cdbd5fde87d4a05a62ede6ed
2003huynhlong21/dvwa
Sources for CVE-2023-39848
53 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files5
2003huynhlong21/dvwaRevision d1332024fd19
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
vulnerabilities/open_redirect/source/medium.php
PHP · 395 bytes<?php
if (array_key_exists ("redirect", $_GET) && $_GET['redirect'] != "") {
if (preg_match ("/http:\/\/|https:\/\//i", $_GET['redirect'])) {
http_response_code (500);
?>
<p>Absolute URLs not allowed.</p>
<?php
exit;
} else {
header ("location: " . $_GET['redirect']);
exit;
}
}
http_response_code (500);
?>
<p>Missing redirect target.</p>
<?php
exit;
?>