In-depth lesson · SQL injection
Root causes
Every point the SQL injection reports back under this heading, best-backed first, each with the reports it is seen in.
-
User input is concatenated into SQL queries instead of being bound as parameters.
Seen in 52 reports
-
A database library did not properly escape parameters.
Seen in 8 reports
-
URL path values were inserted into queries without validation.
Seen in 4 reports
-
Connectors re-escape their own output or inject names into statements.
Seen in 3 reports
-
A Solr query was built from user input without escaping, allowing local parameter injection.
Seen in 2 reports
-
User input in a parameter was concatenated into a SQL query without parameterisation or proper escaping.
Seen in 2 reports
-
Alias validation regexes miss characters used for quoting in the database.
Seen in 2 reports
-
GraphQL parameters are not sanitised in the same way as normal input fields.
Seen in 1 report
-
Escaping is applied only at the XML layer and not at the SQL layer.
Seen in 1 report
-
Projection restrictions in a content provider are enforced for only one URI.
Seen in 1 report
-
A test API service lacked authentication and input sanitisation and had xp_cmdshell enabled.
Seen in 1 report
-
A loose comparison let user input reach an unserialise call.
Seen in 1 report
-
An ORM method accepted raw ordering fragments without validation.
Seen in 1 report
-
$2,000 Critical
-
-
A plugin failed to escape POST parameters before using them in SQL queries.
Seen in 1 report
-
A shortcode handler placed user-controlled order parameters directly into an ORDER BY clause.
Seen in 1 report
-
$4,500 High
-
-
A preview AJAX action lacked authentication.
Seen in 1 report
-
$4,500 High
-
-
The WordPress DB class prepare method was implemented badly.
Seen in 1 report
-
Spring @Query usage allowed N1QL injection.
Seen in 1 report
-
A scientific notation bug in MySQL left WAF clients vulnerable.
-
The application concatenated the URL path directly into a SQL query without parameterisation or sanitisation.
Seen in 1 report
-
A request parameter was concatenated directly into a SQL query without parameterisation or input validation.
Seen in 1 report
-
Search terms were split on whitespace but then inserted into a SQL query without parameterisation or escaping.
Seen in 1 report
-
A content provider passed caller-supplied parameters straight into SQL statements without sanitisation or parameterisation.
Seen in 1 report
-
SQL queries were built by concatenating user-supplied input into the statement without parameterised queries or escaping.
Seen in 1 report
-
A POST parameter was passed directly into a SQL query without validation or parameterisation.
Seen in 1 report
-
Raw SQL was interpolated into an EXPLAIN ANALYZE query without sanitisation, letting an attacker roll back the wrapping transaction and persist extra statements.
-
Sanitising strips tags but does not escape SQL.
Seen in 1 report
-
Query connectors were inserted with unsafe string formatting.
Seen in 1 report
-
JSON object keys were used as column aliases without escaping.
Seen in 1 report
-
Managed WAF rule sets have incomplete coverage of SQL grammar.
Seen in 1 report
-
Query parameters were passed straight into a document database query, letting operators change the lookup.
Seen in 1 report