来源:未知 时间:2015-04-15 13:07 作者:xxadmin 阅读:次
[导读] doyocms平行权限问题之泄露订单 订单越权查看 漏洞 出现问题的代码位于source/member.php处 function myorder(){if($this-syArgs(oid)||$this-syArgs(orderid,1)!=){if($this-syArgs(oid)){$r=array(id=$this-syArgs(oid));}els...
doyocms平行权限问题之泄露订单 订单越权查看漏洞 function myorder(){ if($this->syArgs('oid')||$this->syArgs('orderid',1)!=''){ if($this->syArgs('oid')){$r=array('id'=>$this->syArgs('oid'));}else{$r=array('orderid'=>$this->syArgs('orderid',1));} $this->order=syDB('order')->find($r); if($this->order['state']>0&&$this->order['virtual']==1)$this->virtuals=syDB('product_virtual')->findAll(array('oid'=>$this->order['id'],'state'=>1)); $this->goods=order_goods(unserialize($this->order['goods']),$this->order['logistics']); $this->info=unserialize($this->order['info']); $this->sendgoods=unserialize($this->order['sendgoods']); $total=0; foreach($this->goods[0] as $v){ $total=calculate($total,$v['total']); $total=calculate($total,$v['logistics_price']); } $this->aggregate=calculate($total, $this->order['favorable'],2); $this->display("member/myorderinfo.html"); }else{ $c=syClass('c_order'); $total_page=total_page($GLOBALS['G_DY']['db']['prefix'].'order where uid='.$this->my['id']); $this->lists=$c->syPager($this->syArgs('page',0,1),10,$total_page)->findAll(array('uid'=>$this->my['id']),' addtime desc '); $c_page=$c->syPager()->getPager(); $this->pages=pagetxt($c_page,$GLOBALS['G_DY']['url']["url_path_base"].'?c=member&a=myorder'); $this->display("member/myorder.html"); } }
我注册两个用户sss 和zzz 使用系统管理员给两人注入一些钱(模拟用户)各买东西形成订单
解决方案:增加对uid参数的验证 |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com