dedecms SESSION变量覆盖导致SQL注入(common.inc.php)

文件:common.inc.php

路径:.../include/common.inc.php

解决方案:

查找文件位置:/include/common.inc.php  ,大概在68行左右,找到:

if( strlen($svar)>0 && preg_match('#^(cfg_|GLOBALS|_GET|_POST|_COOKIE)#',$svar) )

修改为:

if( strlen($svar)>0 && preg_match('#^(cfg_|GLOBALS|_GET|_POST|_COOKIE|_SESSION)#',$svar) )


 

猜你喜欢

转载自blog.csdn.net/L_melody/article/details/86550002