Discuz!x3.4 分类信息爆库和表名称 BUG修复 [复制链接]

moqu8 2019-6-11

6 0
BUG:在分类信息表不存在时,x3.4不提示过滤(x3.3一点事没有),会直接系统错误,导致库名和表名泄露了安全部门会要求整改需要自己补下

Discuz x3.3 分类信息表不存在提示
 

\source\module\forum\forum_forumdisplay.php

在487行

  1. $sortid = intval($_GET['sortid']);
复制代码



下面添加:

  1. //判断分类信息id是否存在
  2.         $sortid_check = DB::result_first('SELECT sortid FROM '.DB::table('forum_typevar').' WHERE sortid='.$sortid.'  order by sortid asc');
  3.         if(empty($sortid_check)){
  4.                 showmessage('forum_nonexistence', 'forum.php?mod=forumdisplay&fid='.$_G[fid]);
  5.         }
复制代码

最新回复 (0)
返回
支持中心
邮箱:winkill2012@qqcom
新站优化中!部分功能尚未完善,敬请谅解!
支持中心