Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7031ef8

Browse files
committed
removing default values for referer and host from higher level/risk options
1 parent 1f82d29 commit 7031ef8

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

lib/core/common.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,18 +1107,6 @@ def parseTargetUrl():
11071107
conf.url = "%s://%s:%d%s" % (conf.scheme, conf.hostname, conf.port, conf.path)
11081108
conf.url = conf.url.replace(URI_QUESTION_MARKER, '?')
11091109

1110-
if not conf.referer and (conf.level >= 3 or intersect(REFERER_ALIASES, conf.testParameter, True)):
1111-
debugMsg = "setting the HTTP Referer header to the target url"
1112-
logger.debug(debugMsg)
1113-
conf.httpHeaders = filter(lambda (key, value): key != HTTPHEADER.REFERER, conf.httpHeaders)
1114-
conf.httpHeaders.append((HTTPHEADER.REFERER, conf.url))
1115-
1116-
if not conf.host and (conf.level >= 5 or intersect(HOST_ALIASES, conf.testParameter, True)):
1117-
debugMsg = "setting the HTTP Host header to the target url"
1118-
logger.debug(debugMsg)
1119-
conf.httpHeaders = filter(lambda (key, value): key != HTTPHEADER.HOST, conf.httpHeaders)
1120-
conf.httpHeaders.append((HTTPHEADER.HOST, getHostHeader(conf.url)))
1121-
11221110
def expandAsteriskForColumns(expression):
11231111
"""
11241112
If the user provided an asterisk rather than the column(s)

0 commit comments

Comments
 (0)