From ea0ec868e9196a113a7f71382e0d2491b8cca79b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 6 Dec 2019 15:15:39 +0100 Subject: [PATCH] Fixes #4029 --- lib/controller/controller.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/controller/controller.py b/lib/controller/controller.py index 3f122f5f9..a9bd38e28 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -456,18 +456,18 @@ def start(): for place in parameters: # Test User-Agent and Referer headers only if # --level >= 3 - skip = (place == PLACE.USER_AGENT and conf.level < 3) - skip |= (place == PLACE.REFERER and conf.level < 3) + skip = (place == PLACE.USER_AGENT and (kb.testOnlyCustom or conf.level < 3)) + skip |= (place == PLACE.REFERER and (kb.testOnlyCustom or conf.level < 3)) # --param-filter skip |= (len(conf.paramFilter) > 0 and place.upper() not in conf.paramFilter) # Test Host header only if # --level >= 5 - skip |= (place == PLACE.HOST and conf.level < 5) + skip |= (place == PLACE.HOST and (kb.testOnlyCustom or conf.level < 5)) # Test Cookie header only if --level >= 2 - skip |= (place == PLACE.COOKIE and conf.level < 2) + skip |= (place == PLACE.COOKIE and (kb.testOnlyCustom or conf.level < 2)) skip |= (place == PLACE.USER_AGENT and intersect(USER_AGENT_ALIASES, conf.skip, True) not in ([], None)) skip |= (place == PLACE.REFERER and intersect(REFERER_ALIASES, conf.skip, True) not in ([], None))