Lesson 2.2

SQL injection

Injection happens when data becomes part of the query. Parameterised queries keep the two separate, and they are not optional.

Duration
4m
Level
Intermediate
Students
11k students

Overview

Injection happens when data becomes part of the query. Parameterised queries keep the two separate, and they are not optional.

In this lesson you will:

  • See how concatenated input changes a query
  • Use parameterised queries everywhere
  • Limit database privileges to contain the damage

Resources

OWASP Top 10

The official reference for the tools used in this lesson.