Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
SQL Injection Strategies

You're reading from   SQL Injection Strategies Practical techniques to secure old vulnerabilities against modern attacks

Arrow left icon
Product type Paperback
Published in Jul 2020
Publisher Packt
ISBN-13 9781839215643
Length 210 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (4):
Arrow left icon
 Galluccio Galluccio
Author Profile Icon Galluccio
Galluccio
Gabriele Lombari Gabriele Lombari
Author Profile Icon Gabriele Lombari
Gabriele Lombari
 Caselli Caselli
Author Profile Icon Caselli
Caselli
 Lombari Lombari
Author Profile Icon Lombari
Lombari
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Section 1: (No)SQL Injection in Theory
2. Chapter 1: Structured Query Language for SQL Injection FREE CHAPTER 3. Chapter 2: Manipulating SQL – Exploiting SQL Injection 4. Section 2: SQL Injection in Practice
5. Chapter 3: Setting Up the Environment 6. Chapter 4: Attacking Web, Mobile, and IoT Applications 7. Chapter 5: Preventing SQL Injection with Defensive Solutions 8. Chapter 6: Putting It All Together 9. Assessments 10. Other Books You May Enjoy

Chapter 5

  1. User input should be always considered potentially malicious, so it always needs to be sanitized and validated.
  2. Validating input means deciding if it's valid or not before it's accepted. Blacklisting blocks all known invalid input, while whitelisting only accepts known valid input.
  3. Parameterized queries are a way to build query statements that consist of breaking the query strings in parameters. These are first stored as variables and then inserted into the query's body.
  4. Character encoding and escaping are useful for transforming harmful characters that could otherwise be interpreted by SQL causing SQL injection.
  5. The purpose of a Web Application Firewall (WAF) is to filter requests at the application level, as well as to identify and prevent dangerous requests from reaching the application.
  6. No. If an attacker gains access to the encrypted data, they could also obtain the encryption key, thus rendering encryption useless.
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime