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

Skip to content

Commit 0eb5fb1

Browse files
committed
Update for an Issue #757
1 parent a09e590 commit 0eb5fb1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/controller/checks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
from lib.core.settings import HEURISTIC_CHECK_ALPHABET
6363
from lib.core.settings import SUHOSIN_MAX_VALUE_LENGTH
6464
from lib.core.settings import UNKNOWN_DBMS
65+
from lib.core.settings import URI_HTTP_HEADER
6566
from lib.core.settings import LOWER_RATIO_BOUND
6667
from lib.core.settings import UPPER_RATIO_BOUND
6768
from lib.core.settings import IDS_WAF_CHECK_PAYLOAD
@@ -416,7 +417,8 @@ def genCmpPayload():
416417
try:
417418
page, headers = Request.queryPage(reqPayload, place, content=True, raise404=False)
418419
output = extractRegexResult(check, page, re.DOTALL | re.IGNORECASE) \
419-
or extractRegexResult(check, listToStrValue(headers.headers \
420+
or extractRegexResult(check, listToStrValue( \
421+
[headers[key] for key in headers.keys() if key.lower() != URI_HTTP_HEADER.lower()] \
420422
if headers else None), re.DOTALL | re.IGNORECASE) \
421423
or extractRegexResult(check, threadData.lastRedirectMsg[1] \
422424
if threadData.lastRedirectMsg and threadData.lastRedirectMsg[0] == \

0 commit comments

Comments
 (0)