Out-of-Band SQL Injection

Cybersecurity Glossary APIs & Server-Side Security

Out-of-Band SQL Injection

A SQL injection technique that exfiltrates data through alternative channels like DNS or HTTP requests, useful when direct response is not available.

Out-of-Band SQL Injection (OOB SQLi) is a technique used when an attacker cannot receive results through the normal response channel. Instead, data is exfiltrated through alternative channels such as DNS lookups or HTTP requests to attacker-controlled servers.

How It Works

The attacker crafts SQL queries that cause the database server to make outbound connections. The exfiltrated data is encoded in the DNS hostname or HTTP request path, allowing retrieval on the attacker's server.

When to Use OOB

  • No visible output from queries (true blind)
  • Time-based is too slow or blocked
  • Firewall blocks responses but allows outbound
  • Async query execution

Prevention

  • Use parameterized queries
  • Restrict database outbound network access
  • Disable dangerous functions (xp_dirtree, UTL_HTTP)
  • Monitor for unusual DNS queries

See Also