A product development team has submitted code snippets for review prior to release.
INSTRUCTIONS -
Analyze the code snippets, and then select one vulnerability, and one fix for each code snippet.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.



Correct Answer:
Check below.
Code sniped 1
Is a easy (and antique) way to pass parameter to the server, and
the most a basic way to do a SQL injection
https://www.geeksforgeeks.org/sql-injection-2/
So the fix is perform input sanitization
Code sniped 2
HTTP GET request method is used to request a resource from the server.
but you can send any HTTP headers with your GET request and
send user authentication data in the Authorization header
So the fix is prevent the "authenticated" value from being overridden by GET parameter.