首页 > CMS > 织梦DEDE > 正文

/include/uploadsafe.inc.php dedecms注入漏洞修复方法

2024-07-12 08:45:25
字体:
来源:转载
供稿:网友
2016年8月16号最新 /include/uploadsafe.inc.php dedecms注入漏洞

第8行或者搜索:

  1. $cfg_not_allowall = "php|pl|cgi|asp|aspx|jsp|php3|shtm|shtml";

替换成

  1. $cfg_not_allowall = "php|pl|cgi|asp|aspx|jsp|php3|shtm|shtml|htm|html";

第二处:搜索:

  1. $image_dd = @getimagesize($$_key);
  1. if($image_dd == false){ continue; }

添加后如下:

$image_dd = @getimagesize($$_key);if($image_dd == false){ continue; }if (!is_array($image_dd)){exit('Upload filetype not allow !');}

备注:修改前请做好备份。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表