iron_golem
We are provided with the SQL query:
SELECT id FROM prob_iron_golem WHERE id='admin' AND pw='{$_GET[pw]}'
In this challenge, the code does not print the Hello admin
message. Therefore we have to perform and Error-based SQL injection.
Error-based Blind SQL Injection
In order to distinguish whether the resultant query returns True
or not, we can use error messages. Since the application does not output any error messages either, we have to introduce an error.
ERROR 1690 (22003): BIGINT value is out of range
In SQL the maximum value for a column is 9223372036854775807
. If the value exceeds the limit, it throws the ERROR 1690 (22003): BIGINT value is out of range
error message.
This is the error we will be exploiting.