首页 > 数据库 > > 一条SQL注入的SQL语句疑问
正常的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'
不懂为啥能查询出数据?
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/151/viewspace-3154907/ ,如需转载,请注明出处,否则将追究法律责任。