Skip to main content

Overview

Execute multiple SQL statements separated by ;. Unlike UNION/error-based, stacked queries can run INSERT, UPDATE, DELETE, and administrative commands. Not all databases/drivers support this.

Support Matrix


MSSQL

Execute Commands

Enable xp_cmdshell

Create Admin User

Reverse Shell


PostgreSQL

Command Execution

Create User

File Write


MySQL

Write File

Create User


Data Manipulation

Insert Data

Update Data

Delete Data


Detection

If second query executes, stacked queries work:

Quick Reference


Sources