Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Cybersecurity glossary

SQL injection

SQL injection is an attack where text typed into an application ends up as part of a database query and changes what the query does.

If a program builds a query by gluing in what the user typed, input such as ' OR '1'='1 can turn "find this user" into "find every user". The lessons show it against your own lab copy.

The fix is parameterised queries, which send the query and the values separately so that values can never become SQL. Escaping characters by hand and blocking words such as SELECT are not reliable fixes.

Learn it hands-on

These free lessons teach it with commands to run in a lab of your own and checked tasks. Read them whole with no account.

← All cybersecurity terms