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

c++ - list<myClass<int> * > sort -

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

java - why am i getting a "cannot resolve method" error on getApplication? -