Example (Python/psycopg2): cursor.execute("SELECT * FROM users WHERE name = %s", (user_input,))
: This attempts to combine the results of the original legitimate database query with a new query controlled by the attacker. Example (Python/psycopg2): cursor
Ensure your database user account only has the permissions it absolutely needs (e.g., a web app shouldn't have permission to drop tables). Example (Python/psycopg2): cursor