phpdisk 注入一枚

没穿底裤 2020年1月1日05:59:59评论409 views字数 555阅读1分51秒阅读模式
摘要

  发现竟然报错了。 看了一下所执行的语句delete from pd_file2tag where file_id='1' and tag_name not in ('asd/')


漏洞作者: ′king

phpdisk 注入一枚

 

phpdisk 注入一枚

 

发现竟然报错了。

 

看了一下所执行的语句

delete from pd_file2tag where file_id='1' and tag_name not in ('asd/')

因为phpdisk有全局转义 这样就知道肯定是有个过滤函数 把单引号替换空了

就留下了转义符 但是只有一个参数可控 能引入单引号也没啥用啊。

在modules/public.inc.php中

[php]

$tag_arr = explode(',',$tags);

if(count($tag_arr) >5){

$error = true;

$sysmsg[] = __('too_many_tags');

}

}

[/php]

[php]

if($settings['open_tag']){

make_tags($tags,$tag_arr,$file_id);

}

[/php]

可以看到 是用逗号来切割的 然后就能引入多个参数了。

phpdisk 注入一枚

 

delete from pd_file2tag where file_id='1' and tag_name not in ('asd/','xxxxxxxxxxxxx')

此时就有两个参数了。

然后就

delete from pd_file2tag where file_id='1' and tag_name not in ('asd/',',user() and '') 之类的了。

 

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
没穿底裤
  • 本文由 发表于 2020年1月1日05:59:59
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   phpdisk 注入一枚http://cn-sec.com/archives/75807.html

发表评论

匿名网友 填写信息