Wifi Password Recovery - UTM - Vulnerability Scanning
 

   

    
Toll Free: +1-888-704-7297

Sun Sun Sun

You are here: Encyclopedia > What is SQL Injection?

 What is SQL Injection?

SQL injection is a technique used to take advantage of non-validated input vulnerabilities to pass SQL commands through a Web application for execution by a backend database. Attackers take advantage of the fact that programmers often chain together SQL commands with user-provided parameters, and can therefore embed SQL commands inside these parameters. The result is that the attacker can execute arbitrary SQL queries and/or commands on the backend database server through the Web application.
 Detailed Description
Databases are fundamental components of Web applications. Databases enable Web applications to store data, preferences and content elements. Using SQL, Web applications interact with databases to dynamically build customized data views for each user. A common example is a Web application that manages products. In one of the Web application's dynamic pages (such as ASP), users are able to enter a product identifier and view the product name and description. The request sent to the database to retrieve the product's name and description is implemented by the following SQL statement.
Typically, Web applications use string queries, where the string contains both the query itself and its parameters. The string is built using server-side script languages such as ASP, JSP and CGI, and is then sent to the database server as a single SQL statement. The following example demonstrates an ASP code that generates a SQL query.
When a user enters the following URL:
The corresponding SQL query is executed:
An attacker may abuse the fact that the Product ID parameter is passed to the database without sufficient validation. The attacker can manipulate the parameter's value to build malicious SQL statements. For example, setting the value to the ProductID variable results in the following URL:
The corresponding SQL Statement is:
This condition would always be true and all Product Name and Product Description pairs are returned. The attacker can manipulate the application even further by inserting malicious commands. For example, an attacker can request the following URL:
In this example the semicolon is used to pass the database server multiple statements in a single execution. The second statement is  which causes SQL Server to delete the entire Products table.
An attacker may use SQL injection to retrieve data from other tables as well. This can be done using the statement. The  statement allows the chaining of two separate SQL queries that have nothing in common. For example, consider the following SQL query:
The result of this query is a table with two columns, containing the results of the first and second queries, respectively. An attacker may use this type of SQL injection by requesting the following URL:
The security model used by many Web applications assumes that an SQL query is a trusted command. This enables attackers to exploit SQL queries to circumvent access controls, authentication and authorization checks. In some instances, SQL queries may allow access to host operating system level commands. This can be done using stored procedures. Stored procedures are SQL procedures usually bundled with the database server. For example, the extended stored procedure xp _cmdshell executes operating system commands in the context of a Microsoft SQL Server. Using the same example, the attacker can set the value which returns the list of files in the current directory of the SQL Server process.
 
To see all the sql injection code used in this example please click
 
 
 Read more about our services and products here: About SecPoint, IT Security Products, and IT Security Jobs.

More about Portable Penetrator WPA2 Wifi Audit                                More about Protector UTM Next Gen Firewall

 

Click Here For Web Shop

Reviews of SecPoint.com
 
 
 
 
 

Related pages
Aircrack
Anti-Spam Firewall
Anti-Spam Software
Anti-Virus
Appliance VS Software
Application Security
BackTrack
Black box
Blind SQL Injection
Blue box
CIDR Network Information
Cloud Security
Crack Wifi Passwords
Cross-site Request Forgery
Global System for Mobile GSM communication
Hacker
Hacking wifi password
Hacking Wifi Passwords
Internet Filter
Logic Attack
Logic Bomb
Malware
Man-in-the-middle Attack
PCI-DSS Compliance
RC Release Candidate Software Firmware
Red box
Server Spam Filter
Shoulder Surfing
UTM Appliance Anti-Virus
UTM Appliance WiFi Security
Wardriving
WEP Crack
WEP Key
WEP WPA2 Crack
What are the attacks on the Macros and ActiveX?
What is 2600?
What is a 2.4 GHz Wi-Fi?
What is a Black Hat?
What is a Botnet?
What is a Cookie?
What is a Cracker?
What is a Grey Hat?
What is a Man in the Middle Attack?
What is a Null Session?
What is a Password Replay Attack?
What is a password?
What is a Routing Table?
What is a Script Kiddie?
What is a Spanning Tree Protocol Attack?
What is a vulnerability scanning appliance?
What is a web application firewall?
What is a White Hat?
What is an Elite Hacker?
What is an open mail relay
What is Blacklisting?
What is CISSP?
What is ComboFix?
What is Cross Site Scripting(XSS)?
What is Cyberwarfare?
What is Data Leak Prevention?
What is Denial-of Service Attack?
What is Diffie-Hellman Encryption?
What is Dumpster Diving?
What is Encryption?
What is FTP?
What is Grey Listing?
What is Greylisting?
What is GSM Encryption?
What is High Availability?
What is Instant Messaging?
What is ISSAP?
What is ISSMP?
What is Linux?
What is MD5 Encryption?
What is Novell NetWare?
What is P2P?
What is Penetration Test?
What is Phrack?
What is Port Knocking?
What is RC4 Encryption?
What is SANS Top 20?
What is search engine hacking?
What is SFTP?
What is SHA Encryption?
What is Social Engineering?
What is SOCKS5?
What is SOCKS?
What is Spyware?
What is SQL Injection?
What is SSL?
What is TCP?
What is Telnet?
What is the 5.8 GHz Wi-Fi?
What is the mail service attack on Microsoft Exchange Server?
What is Tunneling Protocol?
What is UDP?
What is UTM?
What is Virus?
What is vlan tagging?
What is VoIP?
What is War Dialing?
What is Whitelisting?
What is Wi-fi?
What is Wimax?
What is Zero Day?
wi-fi password cracker
WiFi Audit
Wifi auditor the Portable Penetrator
WiFi Client Cracking
WiFi Client Hacking
WiFi Crack
WiFi Cracking
Wifi Decoder
WiFi Hack
WiFi Pen Test
WiFi Pen Test Appliance
Windows Operating System - Password Attacks
Wireless Encryption Standards
WPA hacking software
WPA Key
WPA2 Encryption
 
Subscribe to our Mailing List
Customer References
 
More satisfied customers

   
Awards & Reviews
 

View more awards..

Free Services
Free Vulnerability Scan

Free WiFi Security Guide

Encyclopedia | Free Scan Statement | Link Policy | Privacy Statement | Resources | Sitemap | User Policy
© Copyright 1999-2012: SecPoint®
SecPoint ApS Noerregade 7B - 1165 Copenhagen K - Denmark
US Toll free: +1-888-704-7297 - EU: +45-70-235-245