Ethical Hacking - SQL Injection
SQL injection is a set of SQL commands that are placed in a URL string or in data structures in order to retrieve a response that we want from the databases that are connected with the web applications. This type of attacks generally takes place on webpages developed using PHP or ASP.NET.
An SQL injection attack can be done with the following intentions −
● To dump the whole database of a system,
● To modify the content of the databases, or
● To perform different queries that are not allowed by the application.
This type of attack works when the applications don’t validate the inputs properly, before passing them to an SQL statement. Injections are normally placed put in address bars, search fields, or data fields.
The easiest way to detect if a web application is vulnerable to an SQL injection attack is to use the " ‘ " character in a string and see if you get any error.
To prevent your web application from SQL injection attacks, you should keep the following points in mind −
● Unchecked user-input to database should not be allowed to pass through the application GUI.
● Every variable that passes into the application should be sanitized and validated.
● The user input which is passed into the database should be quoted.
Comments
Post a Comment
Hello,
Thank you for reading blogs and your lovely comment. We hope you like this blogs.
Have a nice day!
Again Thanks,
Rk Thakur