TinyShop v1.0.1 SQL注射 可致数据库信息泄露(官网演示+ 源码分析) 无视gpc 详细说明: /protected/controllers/ajax.php //团购结束更新 public function groupbuy_end(){ $id = Req::args('id'); //取得id if($id){ $item = $this->model->table("groupbuy")->where("id=$id")->find(); //无视GPC,直接带入查询 $end_diff = time()-strtotime($item['end_time']); if($end_diff>0){ $this->model->table("groupbuy")->where("id=$id")->data(array('is_end'=>1))->update(); } } } $id无单引号保护,因此无视GPC 何况官网没开GPC(框架里自动stripslashes先,开了也没用) http://shop.tinyrise.com/ajax/groupbuy_end?id=4%27 ![]() ![]() ![]() ![]() |
-
上一篇: 贝因美多处安全漏洞可导致内网沦陷的 - 网站安
下一篇: Python教程网络安全篇 - 网站安全 - 自学php
还没有人抢沙发呢~