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.