SQL Injection MySql in php -


i've make small demonstration how make mysql injection , how protect against them. know how protect our application then, i've question sql injection.

a created simple dummy website demonstration, on i've added search field. search field isn't protected subject sql injection.

i made example, how retrieve global info on database(version, current user, database name), inserting " 'union select [myinteresstingfields] [mytable]; --", question is:

what next step? possible alter database? how? don't see, because mysql_query(it's php website using cakephp) runs 1 request, how alter select request make change in database?(e.g. insert, edit or else, doesn't matter, it's show them can result).

usually use injection collect admin passwords (or token emailed via password reset page), login admin part , stuff there.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -