ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Undergroundthalo Hacking Team - Security Advisory ³ ³ ³ ÚÁ----------------------------------------À³Ù-----------------------------------Á¿ ³ ³Ú´ Author : cr4wl3r ³ Release Date : 18-Okt-2012 ÿ³ ³³³ Product : Amateur Photographer's Image ³ Size : 302.3 kB ³³³ ³³³ Link : http://sourceforge.net/projects/ap-imagegallery ³³³ ³ÃÁ------------------------------------------³-------------------------------------Á´³ ³³ gallery-0.9a.zip ³ ³³ ³ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ³ ³ Details ³ ³ ³ ³ Amateur Photographer's Image Gallery 0.9a ³ ³ ³ ³ A image gallery for photographers who don't care if their photos are publicly ³ ³ available on the web. Offers many advanced features such as image preloading ³ ³ which enables you to switch photos without waiting for the next photo to load. ³ ³ In this vulnerability, attacker can download any file from server. ³ ³ for example, downloading a configuration file contains information username ³ ³ database, another case attacker can inject database with SQL Injection ³ ³ or XSS only from URL ³ ³------------------------------------------------------------------------------------³ RFD Code in force-download.php eLouai's Download ScriptERROR: download file NOT SPECIFIED. USE force-download.php?file=filepath"; exit; } elseif ( ! file_exists( $filename ) ) { echo "eLouai's Download ScriptERROR: File not found. USE force-download.php?file=filepath"; exit; }; switch( $file_extension ) { case "pdf": $ctype="application/pdf"; break; case "exe": $ctype="application/octet-stream"; break; case "zip": $ctype="application/zip"; break; case "doc": $ctype="application/msword"; break; case "xls": $ctype="application/vnd.ms-excel"; break; case "ppt": $ctype="application/vnd.ms-powerpoint"; break; case "gif": $ctype="image/gif"; break; case "png": $ctype="image/png"; break; case "jpeg": case "jpg": $ctype="image/jpg"; break; default: $ctype="application/force-download"; } header("Pragma: public"); // required header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); // required for certain browsers header("Content-Type: $ctype"); // change, added quotes to allow spaces in filenames, by Rajkumar Singh header("Content-Disposition: attachment; filename=\"".basename($filename)."\";" ); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize($filename)); readfile("$filename"); <------- BOOOOOOM exit(); ?> SQLi Code plist.php \n"; } // begin row $small = $row["small"]; $id = $row["id"]; echo ""; // display cell if ($index == 3) { echo "\n"; $index = 1; } // end row else { $index = $index + 1; } // increment count } ?> SQLi Code fullscreen.php