diff --git a/lib/controller/checks.py b/lib/controller/checks.py index f9dd0bfd4..8bf476295 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -89,8 +89,7 @@ def checkSqlInjection(place, parameter, value): # Set the flag for sql injection test mode kb.testMode = True - #for test in getInjectionTests(): - for test in conf.tests: + for test in getInjectionTests(): try: if kb.endDetection: break diff --git a/lib/core/common.py b/lib/core/common.py index 900bfe6ee..7f14316c5 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1974,7 +1974,9 @@ def getInjectionTests(): def priorityFunction(test): retVal = 0 - if 'details' in test and 'dbms' in test.details: + if test.stype == PAYLOAD.TECHNIQUE.UNION: + retVal = 3 + elif 'details' in test and 'dbms' in test.details: if test.details.dbms in getErrorParsedDBMSes(): retVal = 1 else: