Ecmall某处SQL二次注入第一弹

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

### 简要描述: 20140618 ### 详细说明: 20140618做了些过滤但是还是能勉强绕过 首先注册一个会员 然后发布以上商品 然后转义入库 入库后转义符消失 商品名称 商品分类 品牌 价格 库存 上架 推荐 禁售 操作 全选 xxx'and extractvalue(1,concat(0x5c,(user()))),1,1,1,1)# 10.00 100 [可编辑] [可编辑] 编辑 | 删除 发布一个如上的商品 然后找找出库的地方 在app/cart.app.php中 ``` function add() { $spec_id = isset($_GET['spec_id']) ? intval($_GET['spec_id']) : 0; $quantity = isset($_GET['quantity']) ? intval($_GET['quantity']) : 0; if (!$spec_id || !$quantity) { return; } /* 是否有商品 */ $spec_model =& m('goodsspec'); $spec_info = $spec_model->get(array( 'conditions' => $spec_id, 'join' => 'belongs_to_goods', )); if (!$spec_info) { $this->json_error('no_such_goods'); /* 商品不存在 */ return; } /* 如果是自己店铺的商品,则不能购买 */ if ($this->visitor->get('manage_store')) { if ($spec_info['store_id'] == $this->visitor->get('manage_store')) { $this->json_error('can_not_buy_yourself'); return; } } /* 是否添加过 */ $model_cart =& m('cart'); $item_info = $model_cart->get("spec_id={$spec_id} AND session_id='" . SESS_ID . "'"); if...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息