Glossary

What is SQL Injection?

An attack that inserts malicious SQL commands into an application's database queries through user input. It creates the risk of reading, modifying or deleting data.

SQL injection arises when an application inserts data taken from the user directly into the query text. By placing SQL statements in the input, an attacker changes the logic of the query and can gain access to unauthorized data or corrupt it.

The real fix is at the code level: parameterized queries, input validation and the principle of least privilege for database accounts. When these are not applied, the flaw can recur throughout the application.

A WAF offers an additional layer of protection by blocking requests that contain known injection patterns; however, it can miss new or obfuscated forms. It is therefore not a lasting measure. The vulnerability is covered under the injection category in the OWASP Top 10. For a similar class of attack that runs on the client side, see the term XSS.

← All terms

Related solutions

Related articles

Application and Network Security

What Is a WAF? How a Web Application Firewall Works

A WAF (Web Application Firewall) inspects HTTP traffic at the application layer. Learn how it works, its rule models, deployment steps, and common mistakes.

· 7 min read

Let's plan your critical systems together

Tell us what you need; our team will work out the right architecture and migration path with you.