[Mysql] SQL Injection
#2

Since the inputted password is hashed using Whirlpool, you only get a long string of 128 characters as a result.
Such a hash only consists of characters from A-Z and numbers 0-9.
There won't be any character in it that needs to be escaped, so you can safely use %s.

Even if the player entered a password like "; DROP TABLE joueurs" that could delete your table, the entire string is converted into a hashed one and SQL injection is automatically avoided.
Reply


Messages In This Thread
[Mysql] SQL Injection - by anou1 - 20.02.2014, 03:32
Re: [Mysql] SQL Injection - by PowerPC603 - 20.02.2014, 04:23
Re : [Mysql] SQL Injection - by anou1 - 20.02.2014, 22:35

Forum Jump:


Users browsing this thread: 1 Guest(s)