Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Consider the following PHP string representing an SQL statement:
  2. $query = "UPDATE users SET password='$password' WHERE username='$username'";
  3.  
  4. Which of the following values for $username or $password would change the behavior of this query when executed?
  5.  
  6. [ ] None of the above
  7. [ ] $username = "foobar\' WHERE username='admin'";
  8. [ ] $password = "foobar' WHERE username='admin' --:";
  9. [ ] $username = "foobar\' WHERE username='admin'";
  10. [ ] $password = "\"foobar\" WHERE username=\"admin\"";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement