HDWiki 5.1 /control/doc.php SQL注入漏洞

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

### `HDWiki`简介 * 互动维客开源系统(`HDWiki`)作为中国第一家拥有自主知识产权的中文维基(`Wiki`)系统,由互动在线(北京)科技有限公司于2006 年11月28日正式推出,力争为给国内外众多的维基(`Wiki`)爱好者提供一个`免费`、`易用`、`功能强大`的维基(Wiki)建站系统。 ### 漏洞原理 * 参数未经严格过滤,直接被带入至`SQL`语句中进行查询,导致注入漏洞的产生 ### 漏洞分析 * 查看`/control/doc.php`文件 ``` function doedit(){ $this->_anti_copy(); if(isset($this->post['predoctitle'])){ $title = $this->post['predoctitle']; $content=string::stripscript($_ENV['doc']->replace_danger_word($this->post['content'])); $this->view->assign("content",stripslashes($content)); $this->view->assign("title",$title); //$this->view->display("previewdoc"); $_ENV['block']->view('previewdoc'); return; } if(isset($this->post['tagtext'])){ $tags = $this->post['tagtext']; if(string::hstrtoupper(WIKI_CHARSET)=='GBK'){ $tags=string::hiconv($tags,'gbk','utf-8'); } $tags = trim(strip_tags($_ENV['doc']->replace_danger_word($tags))); $did = $this->post['did']; if(!is_numeric($did)){ exit($this->view->lang['parameterError']); } $_ENV['doc']->update_field('tag',$tags,$did); echo...

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