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

Sanitization and input control

We saw that all SQL (and other) databases are inherently vulnerable to SQL injection on their own as the only thing a database does is accept instructions. Therefore, we need to act at the early stages of the data flow, before a query actually reaches our database to prevent an injection from happening.

This is where sanitization comes in. Input, coming from the outside, is cleaned up from any possible malicious element that could result in dangerous commands. You can imagine this process like introducing a compulsory shower for people before they enter a public pool—you can assume that people have a good hygiene level, but since there is no guarantee of it, it's a wise choice to make up for people who don't by leveling out the field and making everyone do it. In most cases, this might not be necessary, but it ensures that cases in which a shower may be needed are covered.

Obviously, there is no single way in which sanitization...

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
Modal Close icon
Modal Close icon