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 product_code field and returns the product_name to the user. The product table stores the suppliers names for the products in the column supplier_name.
SELECT product_name FROM product WHERE product_code =
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!