I'm a beginner in the field of databases, and I'm about to understand, how free text inputs for queries might be used to compromise a database via SQL injection.
Actually, the relevant xckd sums it up perfectly:
This certain comic implies that if I don't allow users to form ANY kind of input that contains SQL commands (like DROP
, UPDATE
, INSERT INTO
, etc.) then "illegal" SQL queries can't be done.
Is there anything I miss? Or am I right?