Boolean-Based Blind SQL Injection

Cybersecurity Glossary APIs & Server-Side Security

Boolean-Based Blind SQL Injection

A blind SQL injection technique where data is extracted by observing different application responses based on whether injected conditions evaluate to true or false.

Boolean-Based Blind SQL Injection is a technique where attackers extract data by asking the database true/false questions and observing differences in the application's response. Unlike time-based attacks, this method relies on visible changes in content or behavior.

How It Works

The attacker injects conditions that evaluate to true or false. Based on the result, the application behaves differently, perhaps showing content when true and an error or empty response when false.

Observable Differences

  • HTTP response code (200 vs 500)
  • Response body length or content
  • Specific text present or absent
  • Redirect behavior

Prevention

  • Use parameterized queries
  • Consistent error handling across all code paths
  • Don't expose different responses based on query results

See Also