Fórum SQL Injection em python #615794
19/05/2021
0
Estou com medo de meu código esteja vulnerável a sql injection.
Alguma opnião?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | self ._sqlhandle.connect(DB_USERS) connected = self ._sqlhandle.chk_conn() logged_in = False if connected: user = str ( self ._user_input.get()) password = str ( self ._pass_input.get()) self ._sqlhandle.execute(f """SELECT usuario FROM {self._sqlhandle.table_name[0]}""" ) for user_data in self ._sqlhandle.cursor.fetchall(): if user = = user_data[ 0 ]: user_exist = True break else : user_exist = False |
Alguma opnião?

Jefferson
Curtir tópico
+ 0
Responder
Clique aqui para fazer login e interagir na Comunidade :)