REST API SQL Injection

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

More Information


The following REST service is vulnerable to SQL Injection.This REST Service retrives a user based on ID



REST API URL: /dvws/vulnerabilities/sqli/api.php/users/2