sql注入逻辑分析

来源:互联网 发布:仿淘宝手机网站模板 编辑:程序博客网 时间:2024/06/09 22:12

1、调用com.alibaba.druid.wall.WallFilter.check(String)方法,检查sql的定义。


select count(1) from t_table where 1=0 and id=1 正确;

select count(1) from t_table where 1=0 and id=1 and 2=2 不正确

select count(1) from t_table where id=1 and 1=0 不正确 

com.alibaba.druid.wall.spi.WallVisitorUtils.checkSelelct(WallVisitor, SQLSelectQueryBlock)打断点

逻辑调用