云企logo

DedeCMS <=5.7 SP2 file_class.php 任意文件上传漏洞

更新日期:2022-08-09  

漏洞: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

下一篇:pbootcms判断列表页有无内容,无内容返回提示
首页