Module_7-SQL_Injection-eWPTXv2-notes
Module_7-SQL_Injection-eWPTXv2-notes
mysql
oracle
main differences
Exploiting SQLi
Techniques Classification
OUT-OF-BAND
INFERENCE
Inband Attacks
leverage the same channel used to inject the SQL code
UNION-based
Error-based
Out-of-Band (OOB)
uses alternative channel(s) to extract data from the server
contrary to Inband
HTTP(s) requests
DNS resolution
File System
BOOLEAN-BASED
TIME-BASED
Boolean-based
Time-based
DBMS version
Databases structure
data
Banner Grabbing
every DBMS has specific functions that return the current version
Educated Guessing
in case of BLIND scenario
tables
columns
users
privileges
Databases - MySQL
Information_SCHEMA → contains all metadata required.
all information about the other databases r stroed within the table
SCHEMATA
SCHEMA()
Databases - MSSQL
Databases - Oracle
TABLESPACE are the place where oracle stores database objects like
tables m indexes, etc
Current_user() → function
Session_user() → function
Current_user → constant
HTTPURType
URIType
URL_HTTP.REQUEST
mssql
provoking DNS requests by using UNC paths