What is SQL injection? What are the uses of it?

Questions by anand_QC

Showing Answers 1 - 9 of 9 Answers

sabithagopi

  • Jan 23rd, 2007
 

SQL Injection happens when a developer accepts user input that is directly placed into a SQL Statementand doesn't properly filter out dangerous characters. This can allow an attacker to not only stealdata from your database, but also modify and delete it.

  Was this answer useful?  Yes

Lakshaman

  • Jan 24th, 2007
 

An exampleWe accept user and password and validate likeselect 1 from users where username = 'username' and password = 'pwd';What if username string is passed like [x' or 1=1; --]select 1 from users where username = 'x' or 1=1; --' and password = 'pwd';

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions