A SQL Server Conditional Statement Injection Tips
Preface
During injection, you may encounter a situation, that is, there is injection. However, there is no data in the table, which causes you to fail to perform the Boolean injection. So you can use this method to obtain mysql statements case when 1 like 1 then 0 else 2*1e308 end similar effect. The methods used here are both errors that occur when data types are inconsistent and then compared. This forces the Boolean effect to be displayed.
CASE Conditional Statement
example 1
SQL: select * from article WHERE id=1 and 1=(CASE WHEN 1=1 THEN 1 ELSE 'x' END)In this way, the forced Boolean result can be achieved.
1 comment