Fixed column name on sql injection lesson 6

This commit is contained in:
MaDuck 2018-05-28 16:53:23 +02:00 committed by Nanne Baars
parent 4e07e0ebfa
commit 9a0995dae5

View File

@ -2,9 +2,9 @@
The query in the code builds a dynamic query as seen in the previous example. The query in the code builds a dynamic query by concatenating strings making it susceptible to String SQL injection: The query in the code builds a dynamic query as seen in the previous example. The query in the code builds a dynamic query by concatenating strings making it susceptible to String SQL injection:
------------------------------------------------------- ------------------------------------------------------------
"select * from users where name = " + userName + "'"; "select * from users where LAST_NAME = " + userName + "'";
------------------------------------------------------- ------------------------------------------------------------
Using the form below try to retrieve all the users from the users table. You shouldn't need to know any specific user name to get the complete list, however you can use 'Smith' to see the data for one user. Using the form below try to retrieve all the users from the users table. You shouldn't need to know any specific user name to get the complete list, however you can use 'Smith' to see the data for one user.