Exploit databaseDownload repository ZIP
GH-91766cd831e73fd286b7f783b3656967
108krishna108/dvw
Sources for CVE-2023-39848
53 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files5
108krishna108/dvwRevision 7b9477fe33a9
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
vulnerabilities/open_redirect/source/impossible.php
PHP · 454 bytes<?php
$target = "";
if (array_key_exists ("redirect", $_GET) && is_numeric($_GET['redirect'])) {
switch (intval ($_GET['redirect'])) {
case 1:
$target = "info.php?id=1";
break;
case 2:
$target = "info.php?id=2";
break;
case 99:
$target = "https://digi.ninja";
break;
}
if ($target != "") {
header ("location: " . $target);
exit;
} else {
?>
Unknown redirect target.
<?php
exit;
}
}
?>
Missing redirect target.