Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Consider the following PHP string representing an SQL statement:
- $query = "UPDATE users SET password='$password' WHERE username='$username'";
- Which of the following values for $username or $password would change the behavior of this query when executed?
- [ ] None of the above
- [ ] $username = "foobar\' WHERE username='admin'";
- [ ] $password = "foobar' WHERE username='admin' --:";
- [ ] $username = "foobar\' WHERE username='admin'";
- [ ] $password = "\"foobar\" WHERE username=\"admin\"";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement