Minor update for requestvalidationmode.py waf script

This commit is contained in:
Miroslav Stampar
2016-05-30 14:26:55 +02:00
parent acc1277246
commit 6885afe8c3
2 changed files with 3 additions and 2 deletions

View File

@@ -13,9 +13,10 @@ def detect(get_page):
retval = False
for vector in WAF_ATTACK_VECTORS:
page, _, _ = get_page(get=vector)
page, _, code = get_page(get=vector)
retval = "ASP.NET has detected data in the request that is potentially dangerous" in (page or "")
retval |= "Request Validation has detected a potentially dangerous client input value" in (page or "")
retval |= code == 500 and "HttpRequestValidationException" in page
if retval:
break