漏洞
DedeCMS <=5.7 SP2 file_class.php 任意文件上傳漏洞
漏洞簡介
dedecms v5.7 sp2截至2019年2月19日的版本中對編輯相冊文件上傳校驗不嚴導致可Getshell.
織夢文件
/dede/file_class.php
漏洞修復方法
打開 /dede/file_class.php 找到大概在161行
else if(preg_match("/\.(".$fileexp.")/i",$filename))
改成
else if(substr($filename, -strlen($fileexp))===$fileexp)
說明
自行采取了底層/框架統一修復、或者使用了其他的修復方案,可能會導致您雖然已經修復了該漏洞,云盾依然報告存在漏洞,遇到該情況可選擇忽略該漏洞提示。