LebiShop商城系统最新版六处SQL注入三

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

### 简要描述: LebiShop商城系统官方下载最新版六处SQL注入,demo演示 ### 详细说明: LebiShop商城系统官方下载最新版六处SQL注入,demo演示 第一处SQL注入 ``` // Shop.Ajax.Ajax_userin public void Comment_Del() { if (this.CurrentUser.id > 0) { string id = RequestTool.RequestString("ids"); if (id == "") { base.Response.Write("{\"msg\":\"" + base.Tag("请选择要删除的信息") + "\"}"); return; } B_Lebi_Comment.Delete(string.Concat(new object[] { "TableName = 'Product' and User_id=", this.CurrentUser.id, " and Parentid in (", id, ")" })); B_Lebi_Comment.Delete(string.Concat(new object[] { "Parentid = 0 and TableName = 'Product' and User_id=", this.CurrentUser.id, " and id in (", id, ")" })); base.Response.Write("{\"msg\":\"OK\"}"); } } ``` 参数id通过RequestTool.RequestString("ids")获取,这里的RequestString只是过滤了单引号 但是在进入in条件后,并没有单引号保护,导致sql注入 下面的sql注入原理同理,都是通过RequestString获取参数,但是在进入sql语句时并没有单引号保护,所以无需截断单引号,导致注入漏洞 第二处SQL注入 ``` // Shop.Ajax.Ajax_userin public void LikeToBasket() { string ids = RequestTool.RequestString("id"); string mes = ""; if (ids != "") {...

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