Skip to content

Commit bdcf3ff

Browse files
committed
Minor update related to the last (error results in OR boolean-based blind should not be the same as True to be able to do proper comparison)
1 parent c7ef942 commit bdcf3ff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/controller/checks.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,10 +446,19 @@ def genCmpPayload():
446446
truePage = threadData.lastComparisonPage or ""
447447

448448
if trueResult and not(truePage == falsePage and not kb.nullConnection):
449+
# Perform the test's False request
449450
falseResult = Request.queryPage(genCmpPayload(), place, raise404=False)
450451

451-
# Perform the test's False request
452452
if not falseResult:
453+
if kb.negativeLogic:
454+
boundPayload = agent.prefixQuery(kb.data.randomStr, prefix, where, clause)
455+
boundPayload = agent.suffixQuery(boundPayload, comment, suffix, where)
456+
errorPayload = agent.payload(place, parameter, newValue=boundPayload, where=where)
457+
458+
errorResult = Request.queryPage(errorPayload, place, raise404=False)
459+
if errorResult:
460+
continue
461+
453462
infoMsg = "%s parameter '%s' seems to be '%s' injectable " % (paramType, parameter, title)
454463
logger.info(infoMsg)
455464

0 commit comments

Comments
 (0)