ITPub博客

首页 > 数据库 > > 一条SQL注入的SQL语句疑问

一条SQL注入的SQL语句疑问

作者:jerrysun 时间:2019-04-11 14:12:13 0 删除 编辑
正常的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'

不懂为啥能查询出数据?

clipboard.png

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/151/viewspace-3154907/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2018-09-29

  • 博文量
    122
  • 访问量
    16191