In Exercise 7, Question 10 (2b) Exfiltration (2)) and also in Question 11 (2c) Exfiltration (3)):
- Please can you tell me why the query SELECT * FROM users WHERE password='123' is considered wrong?
- In Q10, the attacker can see the number of rows. In case there are no user in the database that have the the password '123', then the number of returned rows is 0 and the attacker can know in this case that the password of the admin is not equal to '123'
- The same logic applies for Q11, since the attacker is able to see whether any rows is returned at all.
Please let me know if I am missing something