Q: Login SQL Injection -


so have here classic login selectstatement:

select * users username = '{var}' , password = md5('{var}')

attack:

select * users username = 'admin' -- ' , password = md5('{var}')

my question still susceptible sql injection if use statement:

select * users password = md5('{var}') , username = '{var}'

yes

just set user name variable xxx' or 1=1-- becomes

...and username = 'xxx' or 1=1-- 

parametrise correctly


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -