Book Image

SQL Injection Strategies

By : Ettore Galluccio, Edoardo Caselli, Gabriele Lombari
Book Image

SQL Injection Strategies

By: Ettore Galluccio, Edoardo Caselli, Gabriele Lombari

Overview of this book

SQL injection (SQLi) is probably the most infamous attack that can be unleashed against applications on the internet. SQL Injection Strategies is an end-to-end guide for beginners looking to learn how to perform SQL injection and test the security of web applications, websites, or databases, using both manual and automated techniques. The book serves as both a theoretical and practical guide to take you through the important aspects of SQL injection, both from an attack and a defense perspective. You’ll start with a thorough introduction to SQL injection and its impact on websites and systems. Later, the book features steps to configure a virtual environment, so you can try SQL injection techniques safely on your own computer. These tests can be performed not only on web applications but also on web services and mobile applications that can be used for managing IoT environments. Tools such as sqlmap and others are then covered, helping you understand how to use them effectively to perform SQL injection attacks. By the end of this book, you will be well-versed with SQL injection, from both the attack and defense perspective.
Table of Contents (11 chapters)
1
Section 1: (No)SQL Injection in Theory
4
Section 2: SQL Injection in Practice

Chapter 4

  1. Binary Search can be especially useful while performing blind SQL injection for guessing characters one by one using, for example, MySQL's ascii() function.
  2. Inserting a SQL query inside the argument of a function that relies on external languages/module (as in the ExtractValue() function) might return the result of the query inside the SQL error.
  3. OWASP ZAP provides the Spider tool, which is used to identify web pages and potentially vulnerable forms, and the Scan and Fuzzer tools, which can be used to check for vulnerable parameters.
  4. Yes. sqlmap has a password cracking module that can be used extract passwords from hashes via bruteforcing.
  5. SQL injection can be performed against any type of application, including web applications, web services, and mobile applications, as shown in this chapter.