美文网首页
tp5.0.7 修复getshell漏洞

tp5.0.7 修复getshell漏洞

作者: LauEl | 来源:发表于2021-05-21 08:46 被阅读0次

tp5.0.7 修复getshell漏洞

这里 接手项目用的是 tp5.0.7 突然想到前段事件的tp bug 事件 就试了下 发现确实有这种情况

参考帖子:

https://blog.csdn.net/Bul1et/article/details/85319468

本地测试的时候 到 &function=call_user_func_array&vars[0]=system&vars[1][]=id 的时候 nginx 出现了一个报错 没有成功进行复现

但是 前面的 invokefunction 方法确实是已经进到了 call_user_func_array 函数也已经执行了

官方提供的修复姿势:

https://blog.thinkphp.cn/869075

PHPTutorial\WWW\tp5.0.7\thinkphp\library\think\App.php

358行左右

module 方法中

<pre style="margin: 0px; padding: 0px; overflow: auto; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important;"> if (!preg_match('/^A-Za-z*/',controller)) { throw new HttpException(404, 'controller not exists:' . $controller);
}</pre>

image

测试 修复完成 报错

image

这里 应该就是修复完成了吧 和 tp5.0.24 提示一致

这里显示报错 是因为 debug 没有关 生产环境关掉就好了 不会暴露出相应的信息

相关文章

  • tp5.0.7 修复getshell漏洞

    tp5.0.7 修复getshell漏洞[https://www.cnblogs.com/y734290209/p...

  • CmsEasy 前台无限制getshell

    发布时间:2016-09-29公开时间:N/A漏洞类型:getshell危害等级:高漏洞编号:QTVA-2016-...

  • 2020-08-21通达OA V11.6-删除认证文件getsh

    相关漏洞简介:删除认证文件写入木马getshell 版本:tongdaV11.6 利用情况: 注意⚠️:此漏洞会删...

  • Fckeditor漏洞Getshell

    Fckeditor漏洞Getshell 测试之前 这是一个在朋友指导之下才成功的实战,慢慢的弄清具体原理。仅供学习...

  • 优秀文章

    简记siteserver远程模板下载Getshell漏洞 https://mp.weixin.qq.com/s?_...

  • 漏洞组合又见getshell

    前言 在项目中拿到一个比较有意思的shell。在此记录一下。 struts漏洞 拿眼一打,struts2框架。工具...

  • .NET Ueditor getshell

    Ueditor编辑器出漏洞了,.NET版本可以直接getshell... POC: shell addr填写she...

  • 第13章、加强网络操作系统安全

    修复系统漏洞在360安全卫士中打开系统修复,点击单项修复,选择漏洞修复,image.png 启用防火墙 设置系统管...

  • Tomcat manager getshell

    前言 趁热打铁,顺便复现一下通过Tomcat 的manager用户名、密码进行getshell 漏洞描述: Tom...

  • XXL-JOB漏洞getshell

    大佬分享的又一种getshell姿势 默认密码登录 任务管理--新增任务(按照下图填写)2.jpg 返回GLUE进...

网友评论

      本文标题:tp5.0.7 修复getshell漏洞

      本文链接:https://www.haomeiwen.com/subject/qzgijltx.html