2015-10-07: 细节已通知厂商并且等待厂商处理中 2015-10-08: 厂商已经确认,细节仅向厂商公开 2015-10-11: 细节向第三方安全合作伙伴开放(绿盟科技、唐朝安全巡航) 2015-12-02: 细节向核心白帽子及相关领域专家公开 2015-12-12: 细节向普通白帽子公开 2015-12-22: 细节向实习白帽子公开 2016-01-11: 细节向公众公开
/Lib/Action/Home/SiteAction.class.php
public function article($id=0){ //标题、关键字、描述 $Site = D("Site"); $mod = D("Article"); $si=$mod->field('keyword,remark,title,catid')->where('id='.$id)->find();//mark $sb=$Site->field('title,link')->where('id='.$si['catid'])->find(); $sin['title']=','.$si['title']; $this->assign('so',$sin); $si['title']=$si['title']."-".$sb['title']; $si['link']=$sb['link']?$sb['link']:1; $si[$si['link']]='active'; $this->assign('si',$si); $active[$si['link']]='active'; $this->assign('active',$active); //左边 $site=$Site->field('title,link,id,type')->where('type>1 and status=1')->select(); $this->assign('site',$site); if(!$id){ $this->error("请先选择栏目"); } if(!$id){ $this->error("请先选择文章"); } $list = $mod->where("id=".$id)->relation("site")->find(); $this->assign('list',$list); $artic=$Site->field('title,id')->where('id='.$list['catid'])->find(); $this->assign('artic',$artic); $this->display($list['content_tpl']); } //封面 public function page($id=0){ //标题、关键字、描述 $Site = D("Site"); $si=$Site->field('keyword,remark,title,link')->where('id='.$id)->find();//mark if(!$si['link']){ $si['link']=1; } $this->assign('si',$si); $active[$si['link']]='active'; $this->assign('active',$active); $si['title']=','.$si['title']; $this->assign('so',$si); //左边 $Site = D("Site"); $site=$Site->field('title,id,type')->where('type>1 and status=1')->select(); $this->assign('site',$site); $artic=$Site->field('title')->where('id='.$id)->find();//mark $this->assign('artic',$artic); if(!$id){ $this->error("请先选择栏目"); } $mod = D("Site"); $list = $mod->where("id=".$id)->relation("site_add")->find(); $this->assign('list',$list); //$this->display($list['page_tpl']); $this->display($list['content_tpl']); } //列表 public function listTpl($id=0){ //标题、关键字、描述 $Site = D("Site"); $si=$Site->field('keyword,remark,title,link')->where('id='.$id)->find();//mark if(!$si['link']){ $si['link']=1; } $this->assign('si',$si); $active[$si['link']]='active'; $this->assign('active',$active); //左边 $Site = D("Site"); $site=$Site->field('title,id,type')->where('type>1 and status=1')->select(); $this->assign('site',$site); $artic=$Site->field('title')->where('id='.$id)->find();//mark $this->assign('artic',$artic); if(!$id){ $this->error("请先选择栏目"); } $mod = D("Article"); $list = $mod->where("catid=".$id)->relation("site")->select(); $this->assign('list',$list); $this->display("list"); }
一共有5个地方是进库的
因为执行了两次,所以是12秒
过滤
危害等级:高
漏洞Rank:15
确认时间:2015-10-08 08:27
此类问题已经处理,已在官方论坛贴出修复办法,并在新版本中已测试无法执行,感谢楼主的宝贵意见
暂无