You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// check for response splitting, if poison was reflected in a header
148
-
ifresponseSplitting {
148
+
ifresponseSplittingHeader!="" {
149
149
rp.values[0] +=getRespSplit()
150
-
msg:=fmt.Sprintf("Checking header(s) %s with value(s) %s for Response Splitting, because it was reflected in the response' header\n", rp.headers, rp.values)
150
+
msg:=fmt.Sprintf("Checking header(s) %s with value(s) %s for Response Splitting, because it was reflected in the header %s\n", rp.headers, rp.values, responseSplittingHeader)
151
151
PrintVerbose(msg, Cyan, 1)
152
152
153
153
rp.poison+=getRespSplit()
154
154
rp.url=rUrl
155
155
rp.cb=randInt()
156
-
rp.success=fmt.Sprintf("%s was successfully poisoned with Response Splitting! cb: %s poison: %s\n", headers, rp.cb, rp.values)
156
+
rp.success=fmt.Sprintf("%s successfully poisoned the header %s with Response Splitting! cb: %s poison: %s\n", headers, responseSplittingHeader, rp.cb, rp.values)
// check for response splitting, if poison was reflected in a header
258
-
ifresponseSplitting {
259
-
msg:=fmt.Sprintf("Testing now (%d/%d) %s for Response Splitting, because it was reflected in the response' header\n", i+1, len(headerList), header)
258
+
ifresponseSplittingHeader!="" {
259
+
msg:=fmt.Sprintf("Testing now (%d/%d) %s for Response Splitting, because it was reflected in the header %s\n", i+1, len(headerList), header, responseSplittingHeader)
260
260
PrintVerbose(msg, Cyan, 1)
261
261
262
262
rp.url=rUrl
263
263
rp.cb=randInt()
264
264
rp.poison+=getRespSplit()
265
-
rp.success=fmt.Sprintf("Header %s was successfully poisoned with Response Splitting! cb: %s poison: %s\n", header, rp.cb, rp.poison)
265
+
rp.success=fmt.Sprintf("Header %s successfully poisoned the header %s with Response Splitting! cb: %s poison: %s\n", header, responseSplittingHeader, rp.cb, rp.poison)
// check for response splitting, if poison was reflected in a header
477
-
ifresponseSplitting {
478
-
msg:=fmt.Sprintf("Testing now Parameter (%d/%d) %s for Response Splitting, because it was reflected in the response' header\n", i+1, len(parameterList), parameter)
477
+
ifresponseSplittingHeader!="" {
478
+
msg:=fmt.Sprintf("Testing now Parameter (%d/%d) %s for Response Splitting, because it was reflected in the header %s\n", i+1, len(parameterList), parameter, responseSplittingHeader)
479
479
PrintVerbose(msg, Cyan, 1)
480
480
481
481
rp.poison+=getRespSplit()
482
482
rp.parameters= []string{parameter+"="+rp.poison}
483
483
rp.url=rUrl
484
484
rp.cb=randInt()
485
-
rp.success=fmt.Sprintf("Query Parameter %s was successfully poisoned with Response Splitting! cb: %s poison: %s\n", parameter, rp.cb, rp.poison)
485
+
rp.success=fmt.Sprintf("Query Parameter %s successfully poisoned the header %s with Response Splitting! cb: %s poison: %s\n", parameter, responseSplittingHeader, rp.cb, rp.poison)
// check for response splitting, if poison was reflected in a header
576
-
ifresponseSplitting {
577
-
msg:=fmt.Sprintf("Testing now (%d/%d) %s for Response Splitting, because it was reflected in the response' header\n", i+1, len(impactfulQueries), s)
576
+
ifresponseSplittingHeader!="" {
577
+
msg:=fmt.Sprintf("Testing now (%d/%d) %s for Response Splitting, because it was reflected in the header %s\n", i+1, len(impactfulQueries), s, responseSplittingHeader)
578
578
PrintVerbose(msg, Cyan, 1)
579
579
580
580
rp.url=rUrl
581
581
rp.cb=randInt()
582
582
rp.poison+=getRespSplit()
583
583
rp.bodyString+=getRespSplit()
584
584
rp.identifier+=" response splitting"
585
-
rp.success=fmt.Sprintf("Query Parameter %s was successfully poisoned via %s with Response Splitting! cb: %s poison:%s\n", s, identifier, rp.cb, rp.poison)
585
+
rp.success=fmt.Sprintf("Query Parameter %s successfully poisoned the header %s via %s with Response Splitting! cb: %s poison:%s\n", s, responseSplittingHeader, identifier, rp.cb, rp.poison)
// check for response splitting, if poison was reflected in a header
748
-
ifresponseSplitting {
749
-
msg:=fmt.Sprintf("Testing now Parameter Cloaking (%d/%d) %s%s%s for Response Splitting, because it was reflected in the response' header\n", iu+is+1, len(impactfulQueries)*len(unkeyed_parameter), u, cloak, s)
748
+
ifresponseSplittingHeader!="" {
749
+
msg:=fmt.Sprintf("Testing now Parameter Cloaking (%d/%d) %s%s%s for Response Splitting, because it was reflected in the header %s\n", iu+is+1, len(impactfulQueries)*len(unkeyed_parameter), u, cloak, s, responseSplittingHeader)
rp.success=fmt.Sprintf("Query Parameter %s was successfully poisoned via Response Splitting using %s with Parameter Cloaking! cb:%s poison:%s\n", s, u, rp.cb, rp.poison)
756
+
rp.success=fmt.Sprintf("Query Parameter %s successfully poisoned the header %s with Response Splitting using %s with Parameter Cloaking! cb:%s poison:%s\n", s, responseSplittingHeader, u, rp.cb, rp.poison)
// check for response splitting, if poison was reflected in a header
956
-
ifresponseSplitting {
957
-
msg:=fmt.Sprintf("Testing now %s Header DOS with %s\n for Response Splitting, because it was reflected in the response' header", header, value)
956
+
ifresponseSplittingHeader!="" {
957
+
msg:=fmt.Sprintf("Testing now %s Header DOS with %s\n for Response Splitting, because it was reflected in the header %s", header, value, responseSplittingHeader)
958
958
PrintVerbose(msg, Cyan, 1)
959
959
960
960
rp.values[0] +=getRespSplit()
961
961
rp.url=rUrl
962
962
rp.cb=randInt()
963
-
rp.success=fmt.Sprintf("%sDOS with header %s was successfully poisoned with Response Splitting! cb: %s poison: %s\n", msgextra, header, rp.cb, rp.values[0])
963
+
rp.success=fmt.Sprintf("%sDOS with header %s successfully poisoned the header %s with Response Splitting! cb: %s poison: %s\n", msgextra, header, responseSplittingHeader, rp.cb, rp.values[0])
964
964
rp.identifier+=getRespSplit() +" with response splitting"
0 commit comments