sql - PHP Using % inside mysqli where clause [Havij] -


so website open sql injection , exploited using havij. question program can placeholder in format of getvariable=%inject_here%.

now know in statement can use % wild card.

do % signs have significance inside equals comparison? or structure literally looking string "%inject_here%".

i'm trying understand format further prevent injection.

any information on subject appreciated!

you can convert string it's hexadecimal value. here website doing in sql http://www.codeproject.com/articles/610089/sql-servers-format-function#13. every language has easy use method convert strings , hexadecimal. enable place character want in string.

if using percentages in mathematical type of way, not proper store them in sql string. should store in decimal format. decimal(p,s) example decimal(5,2)


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -