源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

dedecms v5.1 WriteBookText() code injection vul注入漏洞

  • 时间:2022-05-01 12:01 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:dedecms v5.1 WriteBookText() code injection vul注入漏洞
\include\inc_bookfunctions.php  ---------------------------------------------------  …… 
[u]复制代码[/u] 代码如下:
function WriteBookText($cid,$body)   {<span id="more-1944"></span>   global $cfg_cmspath,$cfg_basedir;   $ipath = $cfg_cmspath."/data/textdata";   $tpath = ceil($cid/5000);   if(!is_dir($cfg_basedir.$ipath)) MkdirAll($cfg_basedir.$ipath,$GLOBALS['cfg_dir_purview']);   if(!is_dir($cfg_basedir.$ipath.'/'.$tpath)) MkdirAll($cfg_basedir.$ipath.'/'.$tpath,$GLOBALS['cfg_dir_purview']);   $bookfile = $cfg_basedir.$ipath."/{$tpath}/bk{$cid}.php";   $body = "<"."?php\r\n".$body."\r\n?".">";   @$fp = fopen($bookfile,'w');   @flock($fp);   @fwrite($fp,$body);   @fclose($fp);   <div id="qhide_185676" class="qt" style="display: block;">}   </div>  
……  ————————————————— \member\story_add_content_action.php ————————————————— …… 
[u]复制代码[/u] 代码如下:
WriteBookText($arcID,addslashes($body));  
……  ————————————————— 找了个好看的站测试了一下
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部