SQL Injection

Definition & Meaning

Last updated 23 month ago

What is an SQL Injection?

An SQL injection is a Laptop Attack wherein Malicious Code is embedded in a poorly-designed utility and then passed to the backend Database. The malicious inFormation then produces Database question effects or movements that ought to by no means had been completed.

What Does SQL Injection Mean?

Let’s undergo an example of a SQL injection assault:

An utility running a bank’s operations carries Menus that can be used to look for purchaser info using Records points consisting of the customer’s Social Security Variety. In the heritage the utility calls an SQL Query that runs inside the database through passing the entered search values as follows:

SELECT Client_name, telephone, cope with, date_of_birth WHERE social_sec_no=23425

In this pattern script, the person enters the 23425 cost inside the utility menu Window, inquiring for the person to go into the Social Security number. Then, the use of the fee provided by the user, an SQL question runs in the database.

A person with SQL expertise may also recognize the application and, rather than entering a single cost while asked for the Social Security variety, enter the String “23425 or 1=1,” that's handed to the database as follows:

SELECT client_name, phone, address, date_of_birth WHERE social_sec_no=23425 or 1=1

The WHERE clause is important as it introduces Vulnerability. In a database, the situation 1=1 is usually proper, and due to the fact the query has been special to return purchaser Social Security wide variety details (23425) or WHERE 1=1, the question will go back all rows in the desk, which become no longer the original goal.

The above SQL Injection Attack example is easy, but it indicates how Exploiting a vulnerability to trick the application into running a backend database question or Command.

SQL injection attacks can be mitigated by using ensuring right application design, in particular in Modules that require user enter to run database queries or commands. In the above example, the utility may be cHanged in order that it accepts one numeric price simplest.

Share SQL Injection article on social networks

Your Score to SQL Injection article

Score: 5 out of 5 (1 voters)

Be the first to comment on the SQL Injection

8622- V5

tech-term.com© 2023 All rights reserved