Automating Boolean SQL Injection and Evading Filters

IppSec · Intermediate ·📊 Data Analytics & Business Intelligence ·2y ago
Sign up for Snyk at https://snyk.co/ippsec 00:00 - Talking about why I like SQL Boolean Injection 01:47 - Opening up the source code to the web app 02:00 - Snyk sponsor segment, talking about how it can find and fix vulnerabilities in your code in real time 04:30 - Demonstrating validating boolean injection with an or statement 07:00 - Showing a small python client I made for this video to play with the SQL Injection, then showing subqueries 09:20 - Showing how to enumerate columns in the database via brute-force guessing because we can't use information_schema 11:25 - Going over the LIMIT statement so we can control which row we are looking at, then showing LIMIT 2 offset 1 is the same as LIMIT 1,1 15:00 - Showing the SUBSTR command so we can guess individual characters in a column/row 17:05 - Talking about converting a string to number in mysql which makes it possible to guess bad characters 21:45 - Start of creating our script, talking about the 3 functions we need, then creating one to dump the number of rows in a column 29:40 - Automating getting the length of a column in our row 32:40 - Automating exfilling the actual data and implementing a binary search/divide and conquer algorithm to speed our request up 46:00 - Debugging our script 47:35 - Found the error, messed up the column name. Showing the algorithm we made to bruteforce characters with the BETWEEN 49:00 - Putting all the functions together to automate dumping all the data 54:50 - Showing SQLMap has troubles with this, especially because the function (GEOGRAPHY_AREA) it uses to fingerprint the app won't work because it contains a bad character (_) 57:10 - Cleaning up and explaining the code a little bit
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from IppSec · IppSec · 0 of 60

← Previous Next →
1 HHC2016 - Analytics
HHC2016 - Analytics
IppSec
2 HackTheBox - October
HackTheBox - October
IppSec
3 HackTheBox - Arctic
HackTheBox - Arctic
IppSec
4 HackTheBox - Brainfuck
HackTheBox - Brainfuck
IppSec
5 HackTheBox - Bank
HackTheBox - Bank
IppSec
6 HackTheBox - Joker
HackTheBox - Joker
IppSec
7 HackTheBox - Lazy
HackTheBox - Lazy
IppSec
8 Camp CTF 2015 - Bitterman
Camp CTF 2015 - Bitterman
IppSec
9 HackTheBox - Devel
HackTheBox - Devel
IppSec
10 Reversing Malicious Office Document (Macro) Emotet(?)
Reversing Malicious Office Document (Macro) Emotet(?)
IppSec
11 HackTheBox - Granny and Grandpa
HackTheBox - Granny and Grandpa
IppSec
12 HackTheBox - Pivoting Update: Granny and Grandpa
HackTheBox - Pivoting Update: Granny and Grandpa
IppSec
13 HackTheBox - Optimum
HackTheBox - Optimum
IppSec
14 HackTheBox - Charon
HackTheBox - Charon
IppSec
15 HackTheBox - Sneaky
HackTheBox - Sneaky
IppSec
16 HackTheBox - Holiday
HackTheBox - Holiday
IppSec
17 HackTheBox - Europa
HackTheBox - Europa
IppSec
18 Introduction to tmux
Introduction to tmux
IppSec
19 HackTheBox - Blocky
HackTheBox - Blocky
IppSec
20 HackTheBox - Nineveh
HackTheBox - Nineveh
IppSec
21 HackTheBox - Jail
HackTheBox - Jail
IppSec
22 HackTheBox - Blue
HackTheBox - Blue
IppSec
23 HackTheBox - Calamity
HackTheBox - Calamity
IppSec
24 HackTheBox - Shrek
HackTheBox - Shrek
IppSec
25 HackTheBox - Mirai
HackTheBox - Mirai
IppSec
26 HackTheBox - Shocker
HackTheBox - Shocker
IppSec
27 HackTheBox - Mantis
HackTheBox - Mantis
IppSec
28 HackTheBox - Node
HackTheBox - Node
IppSec
29 HackTheBox - Kotarak
HackTheBox - Kotarak
IppSec
30 HackTheBox - Enterprise
HackTheBox - Enterprise
IppSec
31 HackTheBox - Sense
HackTheBox - Sense
IppSec
32 HackTheBox - Minion
HackTheBox - Minion
IppSec
33 VulnHub - Sokar
VulnHub - Sokar
IppSec
34 VulnHub - Pinkys Palace v2
VulnHub - Pinkys Palace v2
IppSec
35 HackTheBox - Inception
HackTheBox - Inception
IppSec
36 Vulnhub - Trollcave 1.2
Vulnhub - Trollcave 1.2
IppSec
37 HackTheBox - Ariekei
HackTheBox - Ariekei
IppSec
38 HackTheBox - Flux Capacitor
HackTheBox - Flux Capacitor
IppSec
39 HackTheBox - Jeeves
HackTheBox - Jeeves
IppSec
40 HackTheBox - Tally
HackTheBox - Tally
IppSec
41 HackTheBox - CrimeStoppers
HackTheBox - CrimeStoppers
IppSec
42 HackTheBox - Fulcrum
HackTheBox - Fulcrum
IppSec
43 HackTheBox - Chatterbox
HackTheBox - Chatterbox
IppSec
44 HackTheBox - Falafel
HackTheBox - Falafel
IppSec
45 How To Create Empire Modules
How To Create Empire Modules
IppSec
46 HackTheBox - Nightmare
HackTheBox - Nightmare
IppSec
47 HackTheBox - Nightmarev2  - Speed Run/Unintended Solutions
HackTheBox - Nightmarev2 - Speed Run/Unintended Solutions
IppSec
48 HackTheBox - Bart
HackTheBox - Bart
IppSec
49 HackTheBox -  Aragog
HackTheBox - Aragog
IppSec
50 HackTheBox - Valentine
HackTheBox - Valentine
IppSec
51 HackTheBox - Silo
HackTheBox - Silo
IppSec
52 HackTheBox - Rabbit
HackTheBox - Rabbit
IppSec
53 HackTheBox - Celestial
HackTheBox - Celestial
IppSec
54 HackTheBox - Stratosphere
HackTheBox - Stratosphere
IppSec
55 HackTheBox - Poison
HackTheBox - Poison
IppSec
56 HackTheBox - Canape
HackTheBox - Canape
IppSec
57 HackTheBox - Olympus
HackTheBox - Olympus
IppSec
58 HackTheBox - Sunday
HackTheBox - Sunday
IppSec
59 HackTheBox - Fighter
HackTheBox - Fighter
IppSec
60 HackTheBox - Bounty
HackTheBox - Bounty
IppSec

Related AI Lessons

Chapters (17)

Talking about why I like SQL Boolean Injection
1:47 Opening up the source code to the web app
2:00 Snyk sponsor segment, talking about how it can find and fix vulnerabilities in
4:30 Demonstrating validating boolean injection with an or statement
7:00 Showing a small python client I made for this video to play with the SQL Injec
9:20 Showing how to enumerate columns in the database via brute-force guessing beca
11:25 Going over the LIMIT statement so we can control which row we are looking at,
15:00 Showing the SUBSTR command so we can guess individual characters in a column/r
17:05 Talking about converting a string to number in mysql which makes it possible t
21:45 Start of creating our script, talking about the 3 functions we need, then crea
29:40 Automating getting the length of a column in our row
32:40 Automating exfilling the actual data and implementing a binary search/divide a
46:00 Debugging our script
47:35 Found the error, messed up the column name. Showing the algorithm we made to
49:00 Putting all the functions together to automate dumping all the data
54:50 Showing SQLMap has troubles with this, especially because the function (GEOGRA
57:10 Cleaning up and explaining the code a little bit
Up next
Real-World SQL Projects - 5 Hands-On Case Studies
Coursera
Watch →