Skip to content

SQL injection

When input becomes a command

  • Many apps build a database query by gluing the user's input into a string. That is dangerous.
  • If an attacker types SQL as their input, it can become part of the query. This is SQL injection — the most famous web attack.

Malicious input OR 1=1 turns the WHERE clause always-true, leaking every row

Log in or create account

IGCSE & A-Level