织梦Dedecms漏洞修复大全

2025-06-30 12:10:51

1、任意文件上传漏洞修复/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(); }$fullfilename = $cfg_basedir.$activepath.'/'.$filename;;

织梦Dedecms漏洞修复大全

3、四、 /plus/guestbook/edit.inc.php文件,搜索(大概在48行左右)$dsql->ExecuteNoneQuery("UPDATE `UPDATE `dede_guestbook` SET `msg`='$msg', `posttime`='".time()."' WHERE id='$id' ");修改为$msg = addslashes($msg); $dsql->ExecuteNoneQuery("UPDATE `UPDATE `dede_guestbook` SET `msg`='$msg', `posttime`='".time()."' WHERE id='$id' ");五、 /plus/search.php文件,搜索(大概在70行左右)$keyword = addslashes(cn_substr($keyword,30));修改为$typeid = intval($typeid); $keyword = addslashes(cn_substr($keyword,30));

织梦Dedecms漏洞修复大全
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢