Given this MySQL stored procedure:
CREATE PROCEDURE customer.`getCustomers5`(
sdf varchar(1000)
)
BEGIN
set @se = concat('select * from customer.customertbl where id=', sdf);
PREPARE stm1 from @se;
EXECUTE stm1;
END;
Is it possible to do SQL injection into this store procedure even if the front end that called this stored procedure uses PDO parameter/data binding?
I need to build a query dynamically (dynamic where clause) before calling it.
if it's possible to do SQL injection, is there any method to counter this problem?