阿里云dedecms任意文件上传漏洞
/include/dialog/select_soft_post.php文件,在里面找到如下代码,大约在72行
$fullfilename = $cfg_basedir.$activepath.'/'.$filename;
在其上面添加如下代码:
if (preg_match('#.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)[^a-zA-Z0-9]+$#i', trim($filename))) { ShowMsg("你指定的文件名被系统禁止!",'javascript:;'); exit(); }
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容