漏洞:DedeCMS <=5.7 SP2 file_class.php 任意文件上传漏洞
涉及的文件:/dede/file_class.php
修复:打开 /dede/file_class.php 找到大概在161行
else if(preg_match("/.(".$fileexp.")/i",$filename))
改成:
else if(substr($filename, -strlen($fileexp))===$fileexp)
上一篇:织梦栏目属性增加链接rel、nofollow和新窗口target