国产色青青视频在线观看撒_99热精品久久只有精品_99国产情侣在线播放_国产乱理伦片在线 -精品福利一区二区视频_久久亚洲嫩草精品影院_向日葵视频色板下载安装_www.黄色

技術(shù)文章
阿里云提示Discuz memcache+ssrf GETSHELL漏洞如何解決
發(fā)布日期:2019-08-15 閱讀次數(shù):2523 字體大?。?a href="javascript:;" onclick="ChangeFontSize('content',16)">大

一般這個漏洞都是下面文件,source/function/function_core.php

搜索下面代碼:

$content = preg_replace($_G['setting']['output']['preg']['search'], $_G['setting']['output']['preg']['replace'], $content);

在此行代碼前增加下面代碼:

if (preg_match("(/|#|\+|%).*(/|#|\+|%)e", $_G['setting']['output']['preg']['search']) !== FALSE) { die("request error"); }

加完代碼以后效果:

if (preg_match("(/|#|\+|%).*(/|#|\+|%)e", $_G['setting']['output']['preg']['search']) !== FALSE) { die("request error"); }
$content = preg_replace($_G['setting']['output']['preg']['search'], $_G['setting']['output']['preg']['replace'], $content);

上傳文件,重新進行驗證就可以解決。