From 3bbfd0665c029e3ef41c30eda6c83e6f1e8fc3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Notin?= Date: Thu, 15 Sep 2016 16:56:49 +0200 Subject: [PATCH] Fix "or-assign" for return value in netscaler.py --- waf/netscaler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waf/netscaler.py b/waf/netscaler.py index 6ea470862..71006eb7a 100644 --- a/waf/netscaler.py +++ b/waf/netscaler.py @@ -18,7 +18,7 @@ def detect(get_page): for vector in WAF_ATTACK_VECTORS: _, headers, _ = get_page(get=vector) retval = re.search(r"\Aclose", headers.get("Cneonction", "") or headers.get("nnCoection", ""), re.I) is not None - retval = re.search(r"\A(ns_af=|citrix_ns_id|NSC_)", headers.get(HTTP_HEADER.SET_COOKIE, ""), re.I) is not None + retval |= re.search(r"\A(ns_af=|citrix_ns_id|NSC_)", headers.get(HTTP_HEADER.SET_COOKIE, ""), re.I) is not None retval |= re.search(r"\ANS-CACHE", headers.get(HTTP_HEADER.VIA, ""), re.I) is not None if retval: break