what is sql Injection?

Answer Posted / srikant dwibedi

SQL Injection is he process of passing SQL code into an
application in a way that was not intended by the
application developer or it is a strategy for attacking
databases.

Example
An ASP page asks the user for a name and a password.
SELECT FROM users WHERE username="whatever" AND
password="mypassword".
It seems safe,but it is not. A user might enter somthing
like this 'OR 1>0....
when this is plugged into the SQL statewments the result
looks like this:
SELECT FROM users WHERE username="OR 1>0 " AND
password=" ";
This injectin comments out of the password portion of the
statement. It results in a list of all the names in the
users table. So any user could get into your system.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can we load multiple tables in to dataset?

580


What we do with the object of ado.net dataset after using it?

591


What is ado connection?

586


Define isolation?

614


Which method is used to sort the data in ADO.Net?

1615






What is row state?

602


Describe datareader object of ado.net with example.

594


Explain why edit is not possible in repeater?

644


What is executenonquery ado.net?

597


Is ado.net dead?

621


Explain the advantages and disadvantages of using datalist?

683


Why do we serialize data?

594


What are all features of ADO.Net?

639


What DataReader class do in ADO.NET ?

670


What is the difference between the clone() and copy() methods of the dataset class?

632