← All Labs
🛡 SQLI ADVANCED +250 XP · +100 no-hint bonus

A05 Injection – Blind SQL by True and False

A lookup page returns different canned responses for true and false conditions, demonstrating a blind SQL response oracle.

https://a05-injection-blind-sql-by-true-and-false.lab.local/

What is Blind SQL Injection – Boolean-Based Response Oracle?

Blind SQL injection occurs when an application is injectable but does not directly show database errors or query results. An attacker infers information from indirect signals such as response content, status, length or timing. This lab uses fixed responses only.

About this lab

Designed by the SecurityElites team specially for training.

How AI helps you find it

AI can explain the relevant HTTP behaviour, suggest a focused test checklist and help compare expected and observed responses. Confirm findings manually.

How to fix it

  • Use parameterized queries and prepared statements.
  • Do not concatenate untrusted input into SQL.
  • Avoid response differences that expose database evaluation details.
  • Apply least-privilege database permissions.
  • Monitor repeated requests with unusual boolean conditions.
  • Test query parameters in an authorized security test.

How AI helps you defend against it

AI can help review the relevant route, input handling or configuration and draft regression tests. A developer must validate the implementation.

Read the full OWASP LLM Top 10 guide · All free labs · AI red team certification