织梦dedecms后台文件任意上传漏洞

 /dede/media_add.php或者/你的后台名字/media_add.php
搜索$fullfilename = $cfg_basedir.$filename;(大概在69行左右)      
替换成           
 if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)[^a-zA-Z0-9]+$#i', trim($filename))) { ShowMsg("你指定的文件名被系统禁止!",'javascript:;'); exit(); } $fullfilename = $cfg_basedir.$filename;

猜你喜欢

转载自blog.csdn.net/qq_31763129/article/details/80942322