Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is SQL injection?

Answer Posted / p.ramakrishna

An SQL injection attack "injects" or manipulates SQL code
by adding unexpected SQL to a query.
Many web pages take parameters from web user, and make SQL
query to the database. Take for instance when a user login,
web page that user name and password and make SQL query to
the database to check if a user has valid name and password.
Username: ' or 1=1 ---
Password: [Empty]
This would execute the following query against the users
table:
select count(*) from users where userName='' or 1=1 --' and
userPass=''

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the asp.net mvc folder conventions? : asp.net mvc

955


How do you initiate validation on the server manually? What are two situations when you might you want to do that?

1767


How can we make sure that Web API returns JSON data only?

969


What is session object? Describe in detail.

969


What is postback pixel?

934


Can you set which type of comparison you want to perform by the comparevalidator control?

869


Difference between application events and session events

964


What are html helpers in asp.net?

1016


Which is better viewstate or session?

891


What is cross page posting in asp net?

927


Explain the Order of events in an asp.net page?

965


Define static function?

969


What is validation in asp.net?

1009


5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?

2158


What's the ASP.Net Application life cycle?

1038