Bug Bounty Collaboration and Manual Exploitation of an Interesting Boolean SQL Injection
A password reset endpoint was vulnerable to boolean SQL injection, allowing an attacker to enumerate database names and table/column names. The attacker could extract information from the database by observing different responses.
This blog post describes how collaboration and re-checking your notes after a period of time can aid in finding critical vulnerabilities.
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
The target was a password reset feature on h3k.ro. The feature takes a single parameter, the username, and looks the user up before deciding what to do next. When the username does not exist, the application answers with a short message and a small response body. When the username exists but the account is inactive, it answers with a different short message. The application did not allow user registration, so the researchers had no way to create an account and no idea what a valid username looked like.
The write-up is about a boolean SQL injection in that username parameter, found by Tavi (@0xtavi) together with a researcher he calls Mr. X, who preferred to remain anonymous. The report was disclosed on 11 July 2022.
Setup
The work was a collaboration between two researchers on Intigriti. Mr. X had found the potential SQL injection and shared the details; Tavi did the manual exploitation. The tools involved were Burp Suite (Intruder), sqlmap, and a wordlist from SecLists. No special accounts or roles were needed, because the application had no registration.
The report includes a warning worth repeating: be careful who you trust when you send details of a potential vulnerability, and check that the program scope allows collaboration.
Finding it
Mr. X described the endpoint as a reset password functionality with only one parameter, the username, and reported that a single quote broke the query string. His observations were:
username=test'returns an error page.username=test''returns 200 OK.username=test'''returns an error page.username=test' || 'returns 200 OK.username=test' || 'another string' || 'returns 200 OK.
The request he shared looked like this:
The pattern of an odd number of quotes breaking the query and an even number restoring it is the classic sign that the input is concatenated into a string literal. The || concatenation operator working inside the payload seemed to point at Oracle syntax.
Tavi first put the request into sqlmap and tried different syntaxes, prefixes, suffixes and tampering scripts. He also fuzzed the endpoint with time-based payloads, without success. He suspected a WAF was blocking keywords such as SLEEP.
He then found a way to enumerate column names, but considered it insufficient as a proof of concept. His query was:
username=string'||{INJECTED}||'string
This usually returned 200 OK with a content length of 347 when a valid column name was found. Fuzzing it showed that emailParam and loginParam are valid column names. He also built this query, which he describes as the first valid SQL query he was able to create:
username=string'and''||loginParam||''like'xyz
The response was still too blind to be useful, and he believed the WAF was blocking any space or /**/, so he could not create spaces. He later admitted he was wrong: the WAF was not blocking spaces, the responses had just made him think so at the time.
A better starting query followed:
username=string'and''+||loginParam||+'‘like’xyz
Replacing and with andz made it crash, which confirmed the query was being parsed as SQL. Even so, it was not enough. Mr. X asked to see the query so he could work on WAF bypasses as well, and Tavi suggested taking a break because he had little energy or creativity left for it.
At that point the recap was a potential SQL injection with three observable behaviours. A non-existing user:
HTTP/2 200 OK
Content-Length: 1337
No active user found.
A quote producing a system exception:
HTTP/2 200 OK
Content-Length: 713317
blablabla
SYSTEM EXCEPTION
blablabla
And a doubled quote returning to normal:
HTTP/2 200 OK
Content-Length: 1337
No active user found.
Multiple puzzle pieces were still missing, and because the application did not allow registration, the researchers had no clue what valid users looked like. They abandoned the vulnerability for about three months.
Exploitation
Step 1: Re-check the notes and confirm the bug is still there
On 12 June 2022 Tavi was organising his bug bounty notes, came across Mr. X's SQL injection, and tested it again. The vulnerability was still present. With a fresh mind he had a new idea: find out how the application responds when a valid username is sent.
Step 2: Brute-force a valid username
He took 10000 username entries from SecLists:
cat $PATH/SecLists/Usernames/xato-net-10-million-usernames.txt | head -n 10000 | pbcopy
He then brute-forced the endpoint with Burp Intruder, respecting the program's policy. The Intruder request was:
One response stood out because it indicated a valid but inactive user:
HTTP/2 200 OK
Content-Length: 777
Inactive user
Having a valid username, even an inactive one, was better than nothing: it meant no real user's mailbox would be spammed, and the final output consumed by the application could now be controlled, which makes boolean testing much easier.
Step 3: Sanity-check the concatenation
He confirmed the initial information from Mr. X that Oracle string concatenation works:
HTTP/2 200 OK
Content-Length: 777
Inactive user
Step 4: Boolean enumeration of columns and tables
With a working valid username, he was able to do multiple boolean operations and enumerate:
- column names with
username=superma'||<table_name>||'n - table names with
username=superm'||SELECT CASE WHEN (SELECT 1 FROM table)='from' THEN 'a' ELSE 'z' END||n
He also ran sqlmap against the request, using the column name as the insertion point:
sqlmap -r /tmp/sqlmap --level 5 --risk 3 --dbs --proxy=http://[redacted]:8080 --dbms oracle --suffix "||'man" --prefix "super'||" -p username
sqlmap -r /tmp/sqlmap --level 5 --risk 3 --dbs --proxy=http://[redacted]:8080 --dbms oracle --prefix "super'||" -p username
sqlmap -r /tmp/sqlmap --level 5 --risk 3 --dbs --proxy=http://[redacted]:8080 --dbms oracle --suffix "||'man" -p username
None of these succeeded. He submitted the vulnerability to Intigriti with all the boolean proofs he had gathered, but the triager asked for a time-based payload or a proof of concept that enumerated the database name or username.
Step 5: Question the database assumption
The main reason he could not find a viable exploitation vector was that every clue pointed to an Oracle database. The strongest clue was that string concatenation with a'||'b worked, which is specific to Oracle. He had tried all the Oracle SQL injection payloads from pentestmonkey.
He then randomly inserted a few MSSQL syntaxes, such as:
username=superma'||DB_NAME()||'n
This worked. He notes that sqlmap would probably have worked with the prefix and suffix syntaxes if he had tried without the --dbms oracle flag.
Step 6: Enumerate the database name with Intruder
A few minutes later he enumerated the database name with Burp Intruder. The request was:
§param1§ holds numbers from 0 to X, where X is the maximum database name length, and §param2§ holds a-z0-9. The CASE returns a when the character at that position matches and x otherwise.
The characters came out one by one. First character s:
username=superm'||SELECT CASE WHEN (SELECT substring(DB_NAME(),1,1))='s' THEN 'a' ELSE 'x' END||'n
Second character u:
username=superm'||SELECT CASE WHEN (SELECT substring(DB_NAME(),2,1))='u' THEN 'a' ELSE 'x' END||'n
And so on until the full name was known, confirmed with a single comparison:
username=superm'||SELECT CASE WHEN (SELECT DB_NAME())='superman-database' THEN 'a' ELSE 'x' END||'n
That was the valid proof of concept the triager had asked for.
Root cause
The username parameter is concatenated into a SQL string literal, as the quote behaviour shows. A single quote therefore terminates the literal and lets the rest of the input become SQL, which is why an odd number of quotes produces a system exception and an even number restores normal behaviour. The || operator then allows arbitrary expressions to be concatenated into the username value, and the application's own logic (the inactive user message) reflects the result, turning the endpoint into a boolean oracle.
Existing defences did not stop it. The application returned detailed system exceptions on malformed input, which confirmed the injection. The researchers initially believed a WAF was blocking spaces and keywords such as SLEEP, but that was a wrong conclusion drawn from the responses; the report does not describe any WAF rule that actually blocked the final payloads. The database was assumed to be Oracle because of the || syntax, but the backend accepted MSSQL functions such as DB_NAME(), so the assumption itself was a barrier to exploitation rather than a defence.
Impact
An attacker could inject SQL through the password reset username parameter and read data from the database, demonstrated by enumerating column names, table names and the database name. The report does not show extraction of user records or credentials, and does not describe any write or authentication-bypass capability. Exploitation required a valid username to get a stable boolean signal, which the researchers obtained by brute-forcing a wordlist within the program's policy. The vulnerability was triaged and accepted by the company two days later, marked as Critical, with a payment of less than 1000 EUR split 50/50 between the two researchers.
Fix
The fix implied by the root cause is to stop concatenating the username into the query and use parameterised statements or bind variables, so the input can never terminate the string literal. Error handling should also stop returning system exceptions to the client, and the endpoint should not reveal whether a username exists or is inactive through distinguishable responses.
Variants to test
- Quote parity on any single-parameter lookup. Send
value,value',value''and compare status codes, body lengths and error text. A positive result is an error on the odd count and a normal response on the even count. - Concatenation operators. Try
a'||'banda'+'bstyle payloads on the same parameter. A positive result is the application treating the reconstructed value as the original valid value. - Database fingerprinting beyond the obvious syntax. If
||works, do not assume Oracle only; try MSSQL functions such asDB_NAME()in the same concatenation. A positive result is a function result appearing where the username should be. - Boolean oracle through application logic. Find an input where a valid but inactive or otherwise distinguishable account produces a different message, then wrap
CASE WHEN ... THEN 'a' ELSE 'x' ENDin the concatenation. A positive result is a stable difference in response length or content between the two branches. - Character-by-character extraction. Use
substring(DB_NAME(),N,1)with Intruder over positions and character sets. A positive result is one character per position matching theTHENbranch. - Tool flags as a source of false negatives. Re-run sqlmap without a forced
--dbmsvalue and with prefix and suffix options matching the observed syntax. A positive result is the tool identifying the injection where a forced DBMS previously failed.
What happened, in plain words
A website had a "forgot my password" page. You type your username, the site looks you up in its database, and then it tells you something like "no active user found" or "inactive user". Behind that page, the site was building a database question (a query) by gluing your typed username straight into the question text. That is dangerous: if you type special characters, you can change the question itself. This class of bug is called SQL injection.
Two researchers found it. One, who preferred to stay anonymous and is called Mr. X in the write-up, spotted the suspicious behaviour and shared the details. The other, Tavi (@0xtavi), did the manual work of turning a vague suspicion into a working proof. The report was published on 11 July 2022.
The interesting part is not the bug itself, which is a well-known mistake. It is the process: they got stuck, dropped it for about three months, came back with fresh eyes, found a valid username by guessing from a list, and then used the site's own messages as a yes/no signal to read data out of the database one character at a time.
The setup
What the target was
The target was a password reset feature on h3k.ro. The feature takes a single input, the username, and looks the user up before deciding what to do next. There are three visible outcomes:
- The username does not exist: a short message and a small response body.
- The username exists but the account is inactive: a different short message.
- Something goes wrong in the database: an error page.
The application did not allow user registration. That matters more than it sounds: the researchers could not create an account, so they had no idea what a real username looked like. They were poking at a door without knowing whether anyone was behind it.
Who was involved and what tools they used
The work was a collaboration between two researchers on Intigriti, a bug bounty platform. A bug bounty program is a company offering money to people who find and report security problems in its systems, under rules that say what is allowed and what is not.
Mr. X had found the potential SQL injection and shared the details. Tavi did the manual exploitation. The tools were:
- Burp Suite, a program that sits between your browser and a website so you can see and edit every request. One part of it is used here: Intruder, which sends the same request many times with different values filled into marked positions.
- sqlmap, a tool that tries to detect and exploit SQL injection automatically.
- A wordlist from SecLists, a public collection of lists of common usernames, passwords and other strings.
No special accounts or roles were needed, because the application had no registration.
The report includes a warning worth repeating: be careful who you trust when you send details of a potential vulnerability, and check that the program's scope allows collaboration. Scope is the list of systems a program says you may test. Working outside it can be treated as an attack rather than research.
Finding it
The first clue
Mr. X described the page as a reset password function with only one input, the username, and reported that a single quote character broke the query. His observations were:
username=test'returns an error page.username=test''returns 200 OK.username=test'''returns an error page.username=test' || 'returns 200 OK.username=test' || 'another string' || 'returns 200 OK.
The request he shared looked like this:
Line by line:
POST /redacted/passwordResetFunctionality.action HTTP/1.1is the first line of an HTTP request. HTTP is the language a browser and a website speak.POSTmeans "here is some data for you to process", as opposed toGET, which just asks for a page. The path after it names the page being called, andHTTP/1.1is the version of the language.Host: redactedtells the server which site name the request is for. One server can host many sites, so it needs to know which one you mean.- The empty line separates the headers (the metadata) from the body (the actual data).
username=s*is the body: one field namedusernamewith the values*. The*is a placeholder in the write-up, not a real character sent to the server.
Why the quote pattern matters
A database is a program that stores data in tables, like very large spreadsheets, and answers questions written in a language called SQL. A typical question looks like:
In SQL, text values are wrapped in single quotes. The quotes tell the database where the text starts and stops. If a website builds that question by gluing your input between two quotes, then typing a quote of your own ends the text early and whatever you type next is read as part of the question.
That is why the quote count matters. One quote leaves an unclosed quote and the database complains: error page. Two quotes close the text and open a new one, so the question is still valid: normal page. Three quotes break it again. This odd/even pattern is the classic sign that your input is being pasted into a string inside a query.
The || operator is also a clue. In some databases, || means "join these two pieces of text together". So 'a' || 'b' produces ab. The fact that test' || ' returned a normal page suggested the database understood that operator, which seemed to point at Oracle.
The first attempts
Tavi first put the request into sqlmap and tried different syntaxes, prefixes, suffixes and tampering scripts. A prefix is text added before the payload, a suffix is text added after it, and a tampering script is a small transformation applied to the payload to slip past filters. He also fuzzed the page with time-based payloads, without success. Fuzzing means sending many variations of an input and watching for differences. A time-based payload is one that asks the database to wait a few seconds if the injection works; you then look for the delay in the response time. He suspected a WAF was blocking keywords such as SLEEP. A WAF, or web application firewall, is a filter that inspects requests and blocks ones that look malicious.
He then found a way to list column names, but considered it too weak as a proof. A column is one field in a table, for example username or email. His query was:
username=string'||{INJECTED}||'string
This usually returned 200 OK with a content length of 347 when a valid column name was found. Content length is the size of the response body in bytes; it is a handy fingerprint when the visible text does not change. {INJECTED} marks the spot where he tried different values. Fuzzing it showed that emailParam and loginParam are valid column names.
He also built this query, which he describes as the first valid SQL query he was able to create:
username=string'and''||loginParam||''like'xyz
Here and is a SQL keyword that combines two conditions, and like compares text against a pattern. The response was still too blind to be useful. Blind SQL injection means the database's answer never appears directly on the page; you only get indirect hints such as a different message or a different response size. He believed the WAF was blocking any space or /**/, so he could not create spaces. /**/ is a comment marker in SQL that some people use as a space substitute when spaces are filtered. He later admitted he was wrong: the WAF was not blocking spaces, the responses had just made him think so at the time.
A better starting query followed:
username=string'and''+||loginParam||+'‘like’xyz
Replacing and with andz made it crash, which confirmed the query was being parsed as SQL. If a small change to a keyword breaks the page, the keyword was doing real work. Even so, it was not enough. Mr. X asked to see the query so he could work on WAF bypasses as well, and Tavi suggested taking a break because he had little energy or creativity left for it.
The recap: three behaviours
At that point the summary was a potential SQL injection with three observable behaviours. A non-existing user:
HTTP/2 200 OK
Content-Length: 1337
No active user found.
The first block is the request: a normal username with no special characters. The second block is the response. HTTP/2 200 OK means the server accepted the request and answered normally; 200 is the standard code for success. Content-Length: 1337 says the body is 1337 bytes long. The body itself is the message No active user found.
A quote producing a system exception:
HTTP/2 200 OK
Content-Length: 713317
blablabla
SYSTEM EXCEPTION
blablabla
Here the only change is the trailing quote. The status code is still 200, but the body is enormous (713317 bytes) and contains the words SYSTEM EXCEPTION. A system exception is an internal error message from the application or database. Leaking it to the user is itself a problem: it tells an attacker that their input reached the database and broke it.
And a doubled quote returning to normal:
HTTP/2 200 OK
Content-Length: 1337
No active user found.
Two quotes restore the original size and message. This is the odd/even pattern again, now with numbers attached.
Multiple puzzle pieces were still missing, and because the application did not allow registration, the researchers had no clue what valid users looked like. They abandoned the vulnerability for about three months.
Exploitation
Step 1: Re-check the notes and confirm the bug is still there
On 12 June 2022 Tavi was organising his bug bounty notes, came across Mr. X's SQL injection, and tested it again. The vulnerability was still present. With a fresh mind he had a new idea: find out how the application responds when a valid username is sent.
Why this step matters: notes are not just a diary. Coming back to a problem after a break lets you see it differently. And bugs get fixed, so the first thing to check is whether the target still behaves the same way.
Step 2: Brute-force a valid username
He took 10000 username entries from SecLists:
cat $PATH/SecLists/Usernames/xato-net-10-million-usernames.txt | head -n 10000 | pbcopy
Line by line:
catprints the contents of a file.$PATH/SecLists/Usernames/xato-net-10-million-usernames.txtis the path to a wordlist of usernames.$PATHis a placeholder for wherever the list is stored on the machine.|is a pipe: it passes the output of one command into the next.head -n 10000keeps only the first 10000 lines.pbcopycopies the result to the clipboard, ready to paste into a tool.
He then brute-forced the page with Burp Intruder, respecting the program's policy. Brute-forcing means trying many candidate values automatically until one works. The Intruder request was:
The §§ marks the position Intruder will fill with each candidate from the list. Everything else stays the same.
One response stood out because it indicated a valid but inactive user:
HTTP/2 200 OK
Content-Length: 777
Inactive user
So superman is a real account, but it is not active. Having a valid username, even an inactive one, was better than nothing: it meant no real user's mailbox would be spammed, and the final output consumed by the application could now be controlled, which makes boolean testing much easier.
Boolean testing means asking the database yes/no questions and telling the answers apart from the page. If you know what a "yes" looks like and what a "no" looks like, you can ask anything.
Step 3: Sanity-check the concatenation
He confirmed the initial information from Mr. X that string concatenation works:
HTTP/2 200 OK
Content-Length: 777
Inactive user
X that string concatenation works.
In plain words: the site builds ... username = ' + your input + '. You send superma'||'n. The result is ... username = 'superma'||'n'. The database joins superma and n into superman, finds the account, and answers exactly as it would for the real name. You have proved you can rewrite the query while keeping the page happy.
Step 4: Boolean enumeration of columns and tables
With a working valid username, he was able to do multiple boolean operations and list:
- column names with
username=superma'||<table_name>||'n - table names with
username=superm'||SELECT CASE WHEN (SELECT 1 FROM table)='from' THEN 'a' ELSE 'z' END||n
A table is a collection of rows in a database, for example a users table. SELECT asks the database to return something. CASE WHEN ... THEN ... ELSE ... END is SQL's if/else: if the condition is true, produce the first value, otherwise the second. Here the condition checks whether a table exists, and the CASE produces one of two values.
He also ran sqlmap against the request, using the column name as the insertion point:
sqlmap -r /tmp/sqlmap --level 5 --risk 3 --dbs --proxy=http://[redacted]:8080 --dbms oracle --suffix "||'man" --prefix "super'||" -p username
sqlmap -r /tmp/sqlmap --level 5 --risk 3 --dbs --proxy=http://[redacted]:8080 --dbms oracle --prefix "super'||" -p username
sqlmap -r /tmp/sqlmap --level 5 --risk 3 --dbs --proxy=http://[redacted]:8080 --dbms oracle --suffix "||'man" -p username
Line by line, for the first command:
sqlmapis the tool being run.-r /tmp/sqlmaptells it to read a saved HTTP request from that file, so it knows exactly what to send.--level 5 --risk 3ask for the most thorough and most intrusive tests. Higher levels try more payloads and can be noisier.--dbsasks it to list database names.--proxy=http://[redacted]:8080sends traffic through a local proxy, here Burp Suite, so the researcher can watch it.[redacted]means "this computer".--dbms oracleforces the tool to assume the database is Oracle. This is the assumption that later turned out to be wrong.--suffix "||'man"and--prefix "super'||"wrap each payload so it fits the query shape the researcher observed.-p usernamesays which parameter to attack.
The second and third commands are the same with one of the two wrappers removed, to see whether the prefix or the suffix alone is enough.
None of these succeeded. He submitted the vulnerability to Intigriti with all the boolean proofs he had gathered, but the triager, the person who checks incoming reports before they reach the company, asked for a time-based payload or a proof that listed the database name or a username.
Step 5: Question the database assumption
The main reason he could not find a viable exploitation vector was that every clue pointed to an Oracle database. The strongest clue was that string concatenation with a'||'b worked, which is specific to Oracle. He had tried all the Oracle SQL injection payloads from pentestmonkey, a well-known cheat sheet site.
He then randomly inserted a few MSSQL syntaxes, such as:
username=superma'||DB_NAME()||'n
This worked. DB_NAME() is a function in Microsoft SQL Server (MSSQL) that returns the name of the current database. The fact that it ran inside the same || concatenation meant the backend was not Oracle after all, or at least accepted MSSQL functions. He notes that sqlmap would probably have worked with the prefix and suffix syntaxes if he had tried without the --dbms oracle flag.
This is a good lesson: a tool told to assume one database will not try the syntax of another. The assumption was not a defence, it was a blind spot.
Step 6: Enumerate the database name with Intruder
A few minutes later he listed the database name with Burp Intruder. The request was:
§param1§ holds numbers from 0 to X, where X is the maximum database name length, and §param2§ holds a-z0-9. The CASE returns a when the character at that position matches and x otherwise.
substring(DB_NAME(),N,1) means: take the database name, start at position N, and return one character. So the payload asks: "is the Nth character of the database name equal to this candidate?"
The characters came out one by one. First character s:
username=superm'||SELECT CASE WHEN (SELECT substring(DB_NAME(),1,1))='s' THEN 'a' ELSE 'x' END||'n
Second character u:
username=superm'||SELECT CASE WHEN (SELECT substring(DB_NAME(),2,1))='u' THEN 'a' ELSE 'x' END||'n
And so on until the full name was known, confirmed with a single comparison:
username=superm'||SELECT CASE WHEN (SELECT DB_NAME())='superman-database' THEN 'a' ELSE 'x' END||'n
That was the valid proof the triager had asked for. Instead of guessing the whole name at once, the researcher asked one yes/no question per character, which is slow but reliable.
Root cause
The username input is pasted into a SQL string, as the quote behaviour shows. A single quote therefore ends the string and lets the rest of the input become SQL, which is why an odd number of quotes produces a system exception and an even number restores normal behaviour. The || operator then allows arbitrary expressions to be joined into the username value, and the application's own logic (the inactive user message) reflects the result, turning the page into a yes/no oracle.
Existing defences did not stop it. The application returned detailed system exceptions on malformed input, which confirmed the injection. The researchers initially believed a WAF was blocking spaces and keywords such as SLEEP, but that was a wrong conclusion drawn from the responses; the report does not describe any WAF rule that actually blocked the final payloads. The database was assumed to be Oracle because of the || syntax, but the backend accepted MSSQL functions such as DB_NAME(), so the assumption itself was a barrier to exploitation rather than a defence.
Impact
An attacker could inject SQL through the password reset username field and read data from the database, demonstrated by listing column names, table names and the database name. The report does not show extraction of user records or credentials, and does not describe any write or login-bypass capability. Exploitation required a valid username to get a stable yes/no signal, which the researchers obtained by trying a wordlist within the program's policy. The vulnerability was triaged and accepted by the company two days later, marked as Critical, with a payment of less than 1000 EUR split 50/50 between the two researchers.
Fix
The fix implied by the root cause is to stop pasting the username into the query and use parameterised statements or bind variables, so the input can never end the string. Think of it as handing the database a form with a blank box rather than writing the sentence yourself: the database knows the box contains a value, not instructions. Error handling should also stop returning system exceptions to the client, and the page should not reveal whether a username exists or is inactive through distinguishable responses.
Variants to test
- Quote parity on any single-input lookup. Send
value,value',value''and compare status codes, body lengths and error text. A positive result is an error on the odd count and a normal response on the even count. - Concatenation operators. Try
a'||'banda'+'bstyle payloads on the same input. A positive result is the application treating the rebuilt value as the original valid value. - Database fingerprinting beyond the obvious syntax. If
||works, do not assume Oracle only; try MSSQL functions such asDB_NAME()in the same concatenation. A positive result is a function result appearing where the username should be. - Boolean oracle through application logic. Find an input where a valid but inactive or otherwise distinguishable account produces a different message, then wrap
CASE WHEN ... THEN 'a' ELSE 'x' ENDin the concatenation. A positive result is a stable difference in response length or content between the two branches. - Character-by-character extraction. Use
substring(DB_NAME(),N,1)with Intruder over positions and character sets. A positive result is one character per position matching theTHENbranch. - Tool flags as a source of false negatives. Re-run sqlmap without a forced
--dbmsvalue and with prefix and suffix options matching the observed syntax. A positive result is the tool identifying the injection where a forced DBMS previously failed.
Glossary
- API: a way for one program to talk to another, usually by sending requests to specific addresses and getting structured answers back.
- Blind SQL injection: an injection where the database's answer never appears on the page, so you infer it from indirect differences such as message text or response size.
- Boolean testing: asking the database yes/no questions and telling the answers apart from the page's behaviour.
- Brute-forcing: trying many candidate values automatically until one works.
- Bug bounty program: a company offering money to people who find and report security problems in its systems, under published rules.
- Burp Suite: a tool that sits between your browser and a website so you can see and edit every request. Repeater resends one request with changes; Intruder fills marked positions with many values.
- Column: one field in a database table, for example
usernameoremail. - Content length: the size of a response body in bytes, often used as a fingerprint when the visible text does not change.
- Database: a program that stores data in tables and answers questions written in SQL.
- Fuzzing: sending many variations of an input and watching for differences in the response.
- HTTP: the language a browser and a website use to exchange requests and responses.
- Intigriti: a bug bounty platform where companies publish programs and researchers submit reports.
- MSSQL: Microsoft SQL Server, a database product with its own functions such as
DB_NAME(). - Oracle: a database product known for using
||to join text. - Parameterised statement: a way of sending a query where the input is passed as a separate value, so it can never change the query's structure.
- Payload: the crafted input sent to a target to test or exploit a vulnerability.
- Prefix / suffix: text added before or after a payload so it fits the shape of the query being attacked.
- Proxy: an intermediary that requests pass through, here used to watch traffic.
- Scope: the list of systems a bug bounty program says you may test.
- SecLists: a public collection of wordlists for security testing.
- SQL: the language used to ask questions of a database.
- SQL injection: a bug where user input is pasted into a database query, letting the user change the query itself.
- System exception: an internal error message from the application or database, which should not be shown to users.
- Table: a collection of rows in a database, for example a
userstable. - Tampering script: a small transformation applied to a payload to slip past filters.
- Time-based payload: a payload that asks the database to wait a few seconds if the injection works, so you can spot the delay.
- Triager: the person who checks incoming bug bounty reports before they reach the company.
- WAF: web application firewall, a filter that inspects requests and blocks ones that look malicious.
- Wordlist: a file of candidate strings, such as common usernames, used for guessing.