Simple Login Bypass
The most Basic SQL injection ever
Try to find a way to login as the admin.
is_valid_password = 1
' OR '1
By using a single quote, we can evade the string context where is injection take place and inject extra SQL expressions.
To bypass the login the boolean operator OR to do the job. Here we used
OR '1' as it evaluate to true.