BACK TO TOPICS
Advanced

SQL Injection (SQLi)

1. What is SQL Injection?

SQL Injection (SQLi) is a vulnerability where an attacker interferes with the queries an application makes to its database. It allows an attacker to view data they are not normally able to retrieve.

The Core Issue

SQLi occurs when user input is concatenated directly into a SQL command string rather than being handled as data. This allows the input to be interpreted as code.

Impact

  • Data Theft: Dumping the entire database (passwords, emails).
  • Data Modification: Altering balances, changing passwords.
  • Authentication Bypass: Logging in as admin without a password.

Module Progress

1What is SQL Injection?
2Classic SQLi (In-Band)
3Blind SQL Injection
4Second-Order SQLi
5Prevention: Parameterized Queries
Progress20%