Wednesday, July 9, 2014

An SQL Injection can destroy your database.





When SQL is used to display data on a web page, it is common to let web users input their own search values. Since SQL statements are text only, it is easy, with a little piece of computer code, to dynamically change SQL statements to provide the user with selected data:

TEXTBOX id = txtUserId , txtSQL 

txtUserId = getRequestString("UserId");
txtSQL = "SELECT * FROM Users WHERE UserId = " + txtUserId;


SELECT * FROM Users WHERE jackpseo= 105 or 1=1

Friends by sql injection we will run  precompiled ms sql stored procedure or much more thing run on your website query sting.