Easytalk任意文件包含漏洞

没穿底裤 2020年1月1日00:21:42评论352 views字数 892阅读2分58秒阅读模式
摘要

在appaction.class.php中[php][/php]//获取内容[php] [/php] if (@file_exists(ET_ROOT .'/Apps/'.$appname.'/index.class.php'))


漏洞作者: ′ 雨。

在appaction.class.php中

[php]

public function index() {     parent::tologin();         $appname=trim($this->_get('appname'));   $action=$this->_get('action');//直接调用方法      $out=urldecode($_GET['out']);          //是否开启应用   $app=M('Plugins')->where("directory='$appname' AND available=1")->find();   $this->assign('app',$app);      if (!$app) {    $this->display('apperror');    exit;   }   //是否添加

[/php]

//获取内容

[php]

 

if (@file_exists(ET_ROOT .'/Apps/'.$appname.'/index.class.php')) {    include_once(ET_ROOT .'/Apps/'.$appname.'/index.class.php');             if (class_exists($appname)) {         if (!@file_exists(ET_ROOT.'/Apps/'.$appname.'/'.$out)) {     $out='';                 }                      if (!$out) {                     $plugin=new $appname($this);                     if ($action) {                         echo $plugin->$action();                         exit;                     } else {                         if (method_exists($appname,index)) {                             $content=$plugin->index();                         }                     }                 } else {                     include_once(ET_ROOT .'/Apps/'.$appname.'/'.$out);//这里包含了 无语截断。                     exit;                  }             }

[/php]

 

if (@file_exists(ET_ROOT .'/Apps/'.$appname.'/index.class.php'))

需要满足这个 让$appname 为baseexp

然后$out可控。则可以包含了。

 

Easytalk任意文件包含漏洞

 

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
没穿底裤
  • 本文由 发表于 2020年1月1日00:21:42
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   Easytalk任意文件包含漏洞http://cn-sec.com/archives/75456.html

发表评论

匿名网友 填写信息