{"id":13226,"date":"2014-07-23T21:49:14","date_gmt":"2014-07-23T21:49:14","guid":{"rendered":"https:\/\/www.techopedia.com\/definition\/sql-injection-attack\/"},"modified":"2014-07-23T21:49:14","modified_gmt":"2014-07-23T21:49:14","slug":"sql-injection-attack","status":"publish","type":"definition","link":"https:\/\/www.techopedia.com\/definition\/29781\/sql-injection-attack","title":{"rendered":"SQL Injection Attack"},"content":{"rendered":"
An SQL injection attack is an attempt to issue SQL commands to a database via a website interface. This is to gain stored database information, including usernames and passwords. <\/p>\n
This code injection technique exploits security vulnerabilities in an application's database layer. Hackers exploit poorly coded websites and web apps to inject SQL commands, for example, taking advantage of a login form to gain access to the data stored in the database. <\/p>\n
In simple terms, SQL injection attacks occur because the user-input fields permit the SQL statements to pass through and directly query the database.<\/p>\n
Modern websites include login pages, search pages, support and product request forms, shopping carts, feedback forms and so on. <\/p>\n
These website features are all vulnerable to SQL injection attacks due to the availability of user-input fields. An attacker can easily execute arbitrary SQL statements if these websites are prone to SQL injection. This may compromise the databases’ integrity and can expose sensitive data. <\/p>\n
Based on the back-end database used, SQL injection vulnerabilities can result in varying levels of injection attacks. Attackers may manipulate existing queries, use subselects, or add additional queries. In some instances, it may be even possible to read in or write out to files. Also, the attackers may execute shell commands on the root operating system (OS). <\/p>\n
Some SQL Servers like Microsoft SQL Server incorporate stored and extended procedures. If an SQL injection attacker obtains access to these procedures, it can lead to highly undesirable outcomes. Improperly coded websites and webapps are always prone to this kind of attack. <\/p>\n
The ideal way to avoid injection attacks is by detecting the vulnerabilities of websites and web apps before going live. There are automated SQL injection scanners which help the penetration testers verify the vulnerability of websites and web apps for potential SQL injection attacks. <\/p>\n
This helps the web admin to instantly fix the vulnerable code and protect the websites from any potential SQL injection attacks.<\/p>\n","protected":false},"excerpt":{"rendered":"
What Does SQL Injection Attack Mean? An SQL injection attack is an attempt to issue SQL commands to a database via a website interface. This is to gain stored database information, including usernames and passwords. This code injection technique exploits security vulnerabilities in an application's database layer. Hackers exploit poorly coded websites and web apps […]<\/p>\n","protected":false},"author":7813,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_lmt_disableupdate":"","_lmt_disable":"","om_disable_all_campaigns":false,"footnotes":""},"definitioncat":[218,222],"class_list":["post-13226","definition","type-definition","status-publish","format-standard","hentry","definitioncat-cybersecurity","definitioncat-database"],"acf":[],"yoast_head":"\n