Question: Assume that a database application executes the following query which takes user input for the product _ code field and returns the product _ name
Assume that a database application executes the following query which takes user input for the productcode field and returns the productname to the user. The product table stores the suppliers names for the products in the column suppliername.
SELECT productname FROM product WHERE productcode
Explain how a user unauthorized to view the suppliers name of a product can view the suppliers name with SQL injection.
Hint: The UNION operator in SQL is used to combine the result sets of two or more SELECT statements.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
