sql injection - How to verify security of meekrodb? -


meekrodb simple php-->mysql library. how test/verify secure, such against sql injection attacks?

the first option read faq:

are there precautions should take prevent sql injection?

meekrodb makes sql injection 100% impossible if follow 2 simple rules. first, never use %l (literal) placeholder user-supplied data. placeholder doesn't escape data way of others do. second, never change character set @ runtime using mysql commands set names or set character set. if need change character set, use db::$encoding @ same place set mysql username/password.

the second option, assuming have license:

use query/input field filling in:

'\" 

which potentially cause weirdest errors have ever seen. might converted, in case prove it's secure.

update

for example, going there first claim (in combination security):

"meekrodb takes care of quotes , escaping you."

now testing specific claim have provided there way of handling situation:

db::query("select * login username=%s , password=%s",                                                          $username,                                                          $password); 

to prove claim true, write small application (for example) input:

$username = "''""\"; 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -