SQL Injection

noun

say it: “SEE-kwul in-JEK-shun” /ˈsiːkwəl ɪnˈdʒɛkʃən/

An attack where someone types SQL into an input box so that it becomes part of your query.

What is SQL Injection in a relational database?

SQL Injection — A vulnerability where untrusted input changes the intended structure of a SQL statement.

SELECT customer_id, email
FROM customer
WHERE email = ?;

In a sentence

  • “Joining the user's text into the query left it open to SQL injection.”

Level: Journeyman · More Database terms at this level

Updated