sql injection in a legacy php endpoint
inherited a PHP 7.4 app with code like SELECT * FROM users WHERE id = '$_GET[id]'. i want to fix it properly but there are ~40 such queries. is there a quick win while i migrate them all to PDO prepared statements?
4 replies