Saltar al contenido

SQL injection

English

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.

Bob gives WHERE name = 'Bob' and one row; ' OR '1'='1 makes the condition always true and returns all rows

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP