12.3 - SQL Injection
12.3 - SQL injection
Key Terms:
- Structured query language (SQL) - SQL is a language used to interact with databases.
- Structured query language (SQL) injection – An attack that involves manipulating SQL statements on a web application.
SQL
Structured query language (SQL) is a “programming” language used to interact with a database. SQL can perform tasks like adding data, retrieving data and deleting/modifying data. Here is an example of some SQL:
SELECT *
FROM table
WHERE name=’John Doe’;
SQL Injection
SQL injection targets flaws in vulnerable web applications. It exploits input vulnerabilities of the web application to modify existing code and add new code to the SQL query.
SQL Injection Types
- Authentication bypass
- Information disclosure
- Compromised data integrity
- Remote code execution
Countermeasures
Database servers should be restricted so that they can’t run OS commands. Use low privileged accounts to connect to the database. Disable error messages and make sure all data is validated when inputted.
Comments
Post a Comment