Security Glossary

Definition

SQLi

What is SQL Injection?

SQL injection is an attack that inserts attacker-controlled SQL into a database query, letting them read, change or delete data. Parameterised queries prevent it; string concatenation of user input causes it.

An injection attack where malicious SQL statements are inserted into application input fields that are passed unsanitized to a database query, allowing attackers to manipulate query logic. Successful SQL injection can expose sensitive data, bypass authentication, modify or delete records, and in some configurations execute operating system commands. Despite being one of the oldest known web vulnerabilities, SQL injection remains widespread and consistently appears in the OWASP Top 10.