thinkphp的invokefunction漏洞修改:
thinkphp/library/think/App.php
在module方法中获取控制器名添加:
if (!preg_match('/^[A-Za-z](w|.)*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
thinkphp的invokefunction漏洞修改:
thinkphp/library/think/App.php
在module方法中获取控制器名添加:
if (!preg_match('/^[A-Za-z](w|.)*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
该日志由 开发技术学习 于2022年09月14日发表在 编程开发 分类下, 你可以发表评论,并在保留原文地址(https://www.kfju.com/article-id-1238.html)及作者的情况下引用到你的网站或博客。
原创文章转载请注明: thinkphp漏洞invokefunction修复 | 开发技术学习
站点声明:部分内容源自互联网,为传播信息之用,如有侵权,请联系我们删除。
© Copyright 2011-2024 www.kfju.com. All Rights Reserved.
超级字帖 版权所有。 蜀ICP备12031064号 川公网安备51162302000234