What is SQL injection?

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

Tagged . Bookmark the permalink.

One Response to What is SQL injection?

  1. Cilento says:

    Precisely the facts we is in research of. Should really disrupt my personal expenses quickly.

Leave a Reply