正常的SQL是:
select * from post where id = '10';
这里是注入的点:
10" union select id,username,salt,password,5 from user where id="2
对注入的内容进行转义后:
select * from post where id = '10\" union select id,username,salt,password,5 from user where id=\"2'
不懂为啥能查询出数据?
- 2 回答
- 0 关注
- 369 浏览
添加回答
举报
0/150
提交
取消