Skip to main content

SQL Injection

security

SQL injection is an attack that smuggles database commands through unsanitised input, potentially reading or destroying data. It remains among the most common and most preventable web vulnerabilities.

Use parameterised queries and an ORM, keep frameworks patched, and test inputs at the WAF too.

A login form that concatenated strings let an attacker dump the users table with a crafted quote.

Related topics

Frequently asked question

What is SQL Injection?

SQL injection is an attack that smuggles database commands through unsanitised input, potentially reading or destroying data. It remains among the most common and most preventable web vulnerabilities. Use parameterised queries and an ORM, keep frameworks patched, and test inputs at the WAF too.

Read the full answer