您的位置:首页 > 其它

织梦DedeCms任意文件上传漏洞修复

2018-07-06 15:55 274 查看

一、

/include/dialog/select_soft_post.php文件,搜索(大概在72行的样子)      

$fullfilename = $cfg_basedir.$activepath.'/'.$filename;      

修改为      

if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)[^a-zA-Z0-9]+$#i', trim($filename))) 

ShowMsg("你指定的文件名被系统禁止!",'javascript:;'); exit();

 }

 $fullfilename = $cfg_basedir.$activepath.'/'.$filename;;

阅读更多
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: