Skip to content

Commit 67f7517

Browse files
committed
removed getting the Location header
1 parent 689c92e commit 67f7517

File tree

1 file changed

+2
-3
lines changed
  • addOns/ascanrules/src/main/java/org/zaproxy/zap/extension/ascanrules

1 file changed

+2
-3
lines changed

addOns/ascanrules/src/main/java/org/zaproxy/zap/extension/ascanrules/SstiScanRule.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ private void searchForMathsExecution(
365365
}
366366

367367
int statusCode = testMessage.getResponseHeader().getStatusCode();
368-
String redirectUrl = testMessage.getResponseHeader().getHeader("Location");
369368

370369
if (fixSyntax) {
371370
codeFixPrefixes = WAYS_TO_FIX_CODE_SYNTAX;
@@ -408,7 +407,7 @@ private void searchForMathsExecution(
408407
HttpMessage newMsg = getNewMsg();
409408

410409
setParameter(newMsg, paramName, renderTest);
411-
if (!(statusCode >= 300 && statusCode < 400 && redirectUrl != null)) {
410+
if (!(statusCode >= 300 && statusCode < 400)) {
412411
sendAndReceive(newMsg, false);
413412

414413
for (SinkPoint sink : sinksToTest) {
@@ -450,7 +449,7 @@ private void searchForMathsExecution(
450449
}
451450
}
452451
}
453-
if (statusCode >= 300 && statusCode < 400 && redirectUrl != null) {
452+
if (statusCode >= 300 && statusCode < 400) {
454453
try {
455454
for (TemplateFormat format : TEMPLATE_FORMATS) {
456455
// Construct the SSTI payload

0 commit comments

Comments
 (0)