select user from users where user id = 1 or 1 = 1;数据库
dvwa测试以下:测试
在用户名中随意填写,密码输入 'or''=' 就实现了后台的登陆。咱们构造了一个特殊的参数,是原有的查询帐号的逻辑发生错误,绕过认证登陆系统。至关于构造了这样一条SQL语句:网站
select user,password from user where user_id = '随意写' and password=''or''=''spa