File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -446,10 +446,19 @@ def genCmpPayload():
446
446
truePage = threadData .lastComparisonPage or ""
447
447
448
448
if trueResult and not (truePage == falsePage and not kb .nullConnection ):
449
+ # Perform the test's False request
449
450
falseResult = Request .queryPage (genCmpPayload (), place , raise404 = False )
450
451
451
- # Perform the test's False request
452
452
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
+
453
462
infoMsg = "%s parameter '%s' seems to be '%s' injectable " % (paramType , parameter , title )
454
463
logger .info (infoMsg )
455
464
You can’t perform that action at this time.
0 commit comments