Questions
Answer the following questions to test your knowledge of this chapter:
- Try to figure out the SQL injection risk in your already-developed applications. Have you focused on the implicit Date and Time conversions? How can your solution be updated to eliminate it?
- Use the data model shown in Figure 14.1. Assume that the following query is used to produce the
name
andsurname
values of the employee. Each employee is uniquely identified by theemployee_id
attribute value. The required value of theemployee_id
value is user specified:select name, surname from personal_data join employment using (personal_id) where employee_id=INPUT_VAL;
Which input value provides SQL injection and produces all the names and surnames, irrespective of the provided employee ID?
NULL
IS NULL
1=1
1
or 1=1