Reducing false-positive 'appears' messages in heavily dynamic environment

This commit is contained in:
Miroslav Stampar
2018-03-29 14:47:30 +02:00
parent cdb1e79370
commit ae8699f258
3 changed files with 7 additions and 3 deletions

View File

@@ -514,6 +514,10 @@ def checkSqlInjection(place, parameter, value):
kb.matchRatio = _
logger.debug("adjusting match ratio for current parameter to %.3f" % kb.matchRatio)
# Reducing false-positive "appears" messages in heavily dynamic environment
if kb.heavyDynamic and not Request.queryPage(reqPayload, place, raise404=False):
continue
injectable = True
elif threadData.lastComparisonRatio > UPPER_RATIO_BOUND and not any((conf.string, conf.notString, conf.regexp, conf.code, kb.nullConnection)):