I have the following python code:
row = conn.execute('''SELECT admin FROM account WHERE password = ?''',
(request.headers.get('X-Admin-Pass'),)).fetchone()
My question is: is this code safe for SQL injection? Since I am using a parameterized query, it should be. However, since I am passing user information directly from the header, I am a little worried :)
Any thoughts on the issue?
source
share