【合天网安实验室】GET注入-显错注入

# 题目传送门:https://www.hetianlab.com/expc.do?ce=cef4400a-f833-43a3-abe7-c0161fa9e1ff

Step1:根据题目提示,构造参数id语句,效果图如下

image
显示id=1的用户名,密码信息

Step2:尝试是否存在sql注入点 直接上'

image
结果报错,说明存在sql注入漏洞

Step3:使用order by 判断字段数:

image
正常显示
image
提示错误信息,表明字段数为3

Step4:字段数已知,使用联合注入语句

image
图片中的2,3位置就是具体注入点

Step5:替换sql语句,爆库,版本号

image
可知,database为:security

Step6:爆表

image
选择users表

Step7:爆users表字段

image

Step8:爆username,password

image

Step9:数据成功到手

方法二:直接万能,上图

image

posted on 2022-06-09 20:45  Studyxy  阅读(443)  评论(0)    收藏  举报