File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments