本文作者:温文曦

kangle 安全 解决PHP跨站权限漏洞问题,设置tmp临时文件目录,open_basedir函数方案

温文曦 2019-12-17 5965 抢沙发
kangle 安全 解决PHP跨站权限漏洞问题,设置tmp临时文件目录,open_basedir函数方案摘要: 我们来解决这个的防护方法就是设置php-templete.ini文件,找到open_basedir,把前面的分号去掉,如下所示即可解决此问题。; open_basedir...

我们来解决这个的防护方法就是

设置php-templete.ini文件,找到open_basedir,把前面的分号去掉,如下所示即可解决此问题。


; open_basedir, if set, limits all file operations to the defined directory; and below. This directive makes most sense if used in a per-directory; or per-virtualhost web server configuration file. This directive is; *NOT* affected by whether Safe Mode is turned On or Off.open_basedir = “${doc_root}:/tmp”

保存重启下web,是不是好了呢


本文转自http://blog.lqmz.cc/


文章版权及转载声明

作者:温文曦本文地址:https://www.wxnotes.com/blog/90.html发布于 2019-12-17
文章转载或复制请以超链接形式并注明出处文曦博客

赞(7)
阅读
分享

发表评论

快捷回复:

评论列表 (暂无评论,5965人围观)参与讨论

还没有评论,来说两句吧...