Exists? Method
This query is intended to see if a user exists, from that user's name.
To see the normal use case, delete all the text in the "User" field
and insert:
Bob
Click Run to see the result: "true".
Inject this to ask a question the developer won't like: "Is there a user with a password of Bobpass?". The answer is "true".
') or (SELECT 1 AS one FROM 'users' WHERE password = "Bobpass" AND ''='
To prove that it's working, inject this to ask: "Is there a user with a password of bobpass?". The answer is "false".
') or (SELECT 1 AS one FROM 'users' WHERE password = "bobpass" AND ''='
|
|