文章来源:http://www.imtr.cn/html/n238.html
漏洞名称:file_class.php 任意文件上传漏洞
危险等级:★★★★★(高危)
漏洞文件:/dede/file_class.php
披露时间:2019-04-10
漏洞描述:dedecms的file_class.php文件中存在严重上传漏洞。
修复方法:
打开/dede/file_class.php
找到大概第161行的代码:
else if(preg_match("/\.(".$fileexp.")/i",$filename))
修改为:
else if(substr($filename, -strlen($fileexp))===$fileexp)
原文地址:http://www.imtr.cn/html/n238.html