From 6885afe8c3e4ef62b90f8732075675b8aebd1819 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 30 May 2016 14:26:55 +0200 Subject: [PATCH] Minor update for requestvalidationmode.py waf script --- lib/core/settings.py | 2 +- waf/requestvalidationmode.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index ec90e805a..7807fbe19 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.5.106" +VERSION = "1.0.5.107" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") diff --git a/waf/requestvalidationmode.py b/waf/requestvalidationmode.py index 4c8ba02b8..e20d00b5b 100644 --- a/waf/requestvalidationmode.py +++ b/waf/requestvalidationmode.py @@ -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