From a1c943fc79844aa3f5e1aad9be48e68a54ce9863 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 16 Mar 2012 17:22:55 +0000 Subject: [PATCH] Major bug fix to comparison algorithm with OR based boolean-based injections --- lib/request/comparison.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/comparison.py b/lib/request/comparison.py index c2c8558b8..ccc727496 100644 --- a/lib/request/comparison.py +++ b/lib/request/comparison.py @@ -56,7 +56,7 @@ def comparison(page, headers, code=None, getRatioValue=False, pageLength=None): if page: # In case of an DBMS error page return None - if kb.errorIsNone and (wasLastRequestDBMSError() or wasLastRequestHTTPError()): + if not kb.negativeLogic and kb.errorIsNone and (wasLastRequestDBMSError() or wasLastRequestHTTPError()): return None # Dynamic content lines to be excluded before comparison