Module 5 ยท Lesson 1 ยท 40 minutes

๐Ÿ’‰ SQL Injection โ€” Your First Hack

The most famous attack in history. The idea โ€“ in 2 minutes. Practice โ€“ on a training site in 10 minutes.

๐Ÿ“– Why You Need to Know This

In 2017, a person noticed a strange error on a large online store's website: when he put ' (a single quote) in the search field, the site displayed a technical error about a "syntax error".

Within 30 minutes, he had the entire database โ€” a million user emails and passwords. Within 2 hours, this data was being sold on the darknet for $5000.

The attack is called SQL Injection (or "SQLi"). It's the oldest and most common web vulnerability. Every pentester learns it first.

This lesson is about the idea: what it is, how it's exploited, how to protect against it. And mandatory practice on a specially vulnerable website.

๐Ÿ“’ What is a Database and SQL

๐ŸŽฏ Explained Simply in 30 Seconds

Database = a huge Excel table where the site stores everything.

Users, posts, orders, passwords โ€” everything is stored in tables. For example, the users table:

id | name    | email           | password
1  | admin   | admin@site.ru   | hash...
2  | vasya   | vasya@gmail.com | hash...

SQL is the query language for this table. Like "I have a question for Excel: show me rows where name = vasya".

When you enter a login on