dedecms低于5.7SP2任意文件上传漏洞
漏洞分析
文件/dede/file_class.php
修复方法:
打开/dede/file_class.php
找到大概第161行的代码:
1 | else if(preg_match("/\.(".$fileexp.")/i",$filename)) |
修改为:
1 | else if(substr($filename, -strlen($fileexp))===$fileexp) |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
ValineGitalk