diff --git a/lib/controller/checks.py b/lib/controller/checks.py index c86a3f61b..3f59095f5 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -650,9 +650,12 @@ def heuristicCheckDbms(injection): pushValue(kb.injection) kb.injection = injection - randStr1, randStr2 = randomStr(), randomStr() for dbms in getPublicTypeMembers(DBMS, True): + if not FROM_DUMMY_TABLE.get(dbms, ""): + continue + + randStr1, randStr2 = randomStr(), randomStr() Backend.forceDbms(dbms) if checkBooleanExpression("(SELECT '%s'%s)='%s'" % (randStr1, FROM_DUMMY_TABLE.get(dbms, ""), randStr1)):