Question: A website has this code inside their login system. What could you type into the username box so that you could login without knowing

A website has this code inside their login system. What could you type into the username box so that you could login without knowing the password? $user = $_POST['username']; $pass = $_POST['password']; $dbh connectToDatabase(); $statement = $dbh->prepare("SELECT * FROM Users WHERE UserName = '$user' AND Password = 'Spass'; "); $statement->execute(); if ($row = $statement->fetch()) { } $firstname = $row['FirstName']; $lastname = $row['LastName']; echo "Welcome Sfirstname $lastname! "; Answer:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
