scanrub
Web SecurityCriticalSQLiBlind SQLiError-based SQLi

SQL Injection

User input is concatenated into a SQL query, letting an attacker alter query logic to read, modify, or destroy data.

Live Playground · Powered by this research
SQL Injection Pattern Detector

Paste a URL parameter value or a query string - we'll flag payloads that resemble SQL injection.

Quote charactersDETECTED
Comment syntaxNot present
UNION/SELECTNot present
Boolean logicDETECTED
Time delay functionsNot present
Stacked queriesNot present
Match to HackerOne payload' OR '1'='1
Exact match to a payload from our HackerOne corpus. This has been used in real disclosed reports.
Payloads from this research (10 total)
' OR '1'='1
1' UNION SELECT NULL,NULL,NULL--
1' AND SLEEP(5)--
'; WAITFOR DELAY '0:0:13'--
These payloads were synthesized from real HackerOne disclosures. Click any payload to copy it, then paste it into the tester above to see how our detection classifies it.

Overview

When input is interpolated into SQL instead of bound as a parameter, attacker syntax changes the query’s meaning. Variants include error-based, UNION-based, boolean/time-based blind, and out-of-band exfiltration.

How it works

When input is interpolated into SQL instead of bound as a parameter, attacker syntax changes the query’s meaning. Variants include error-based, UNION-based, boolean/time-based blind, and out-of-band exfiltration.

Example

sql
-- input: ' OR '1'='1
SELECT * FROM users WHERE email = '' OR '1'='1' -- ' AND pass = '...'

Impact

Full database disclosure, authentication bypass, data tampering, and in some configurations remote command execution via database features.

Detection

Send boolean, error, and time-based payloads per parameter and compare responses and latency to a baseline. Correlating timing deltas with error signatures, rather than relying on either alone, is what separates a confident finding from a coincidental delay.

Prevention

  • Always use parameterized queries / prepared statements.
  • Use an ORM correctly and never string-build queries from input.
  • Apply least-privilege database accounts and disable dangerous functions.
  • Validate and allowlist where structure (column/table names) cannot be parameterized.

Real-world HackerOne reports

Sampled from 163 disclosed reports analyzed for the SQL Injection research playbook.

Weekly security research

New vulnerability playbooks, tool updates, and bug bounty insights - delivered to your inbox. No spam.

Unsubscribe anytime. We respect your inbox.
Press ⌘K to search×