MyBB 1.4 admin remote code execution...

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

在index.php文件336行左右代码如下: //index.php,336行左右 $plugins->run_hooks("index_end"); //出现了eval函数,注意参数 eval("\$index = \"".$templates->get("index")."\";"); output_page($index); [/code] 看以下eval()函数中的内容是否可以控制,继续找到templates类查看get函数的定义 [code] //inc/class_templates.php,65行左右 function get($title, $eslashes=1, $htmlcomments=1) { global $db, $theme, $mybb; // // DEVELOPMENT MODE // if($mybb->dev_mode == 1) { $template = $this->dev_get($title); if($template !== false) { $this->cache[$title] = $template; } } if(!isset($this->cache[$title])) { $query = $db->simple_select("templates", "template", "title='".$db->escape_string($title)."' AND sid IN ('-2','-1','".$theme['templateset']."')", array('order_by' => 'sid', 'order_dir' => 'DESC', 'limit' => 1)); //从数据库里面的取出模版的代码 $gettemplate = $db->fetch_array($query); if($mybb->debug_mode) {...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息