SESSION变量覆盖导致SQL注入漏洞

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/qq_31763129/article/details/80252112