Read almost all the post on this but could not judge whether my procedures are vulnarable or not? Any help is appreciated.
1)calling Procedure as:
$query = ($is_mine?'call dispatch.dis_get_my_assigned_tasks("'.$username.'");'
Procedure :
CREATE DEFINER=`test`@`localhost` PROCEDURE `dis_get_all_assigned_tasks`()
BEGIN
select distinct at_id, at_issues, at_location, at_room_number, user_fname,
from dispatch.dis_assigned_tasks
left outer join dispatch.dis_users
on user_id = at_user
order by at_location, at_user_pickup_timestamp desc;
END
2) calling Procedure as :
$query = "call dispatch.dis_get_user_info('".$username."');";
Procedure :
CREATE DEFINER=`test`@`localhost` PROCEDURE `dis_get_user_info`(IN username VARCHAR(45))
BEGIN
select * from dispatch.dis_users where user_username = username;
END