SQL injection is a security vulnerability in which an attacker is able to submit a database SQL command that is executed by a web application, exposing the back-end database. A SQL injection attack can occur when a web application utilizes user-supplied data without proper validation or encoding as part of a command or query.
Note: If the REST API is exhibiting "Unable to connect to the database. mysql_error()", please edit the api.php file located under \dvws\vulnerabilities\sqli
The following REST service is vulnerable to SQL Injection.This REST Service retrives a user based on ID