1.

What Is Sql Injection?

Answer»

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=''

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.

This would execute the following query against the users table:



Discussion

No Comment Found