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

Skip to content

Commit 6885afe

Browse files
committed
Minor update for requestvalidationmode.py waf script
1 parent acc1277 commit 6885afe

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.106"
22+
VERSION = "1.0.5.107"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

waf/requestvalidationmode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ def detect(get_page):
1313
retval = False
1414

1515
for vector in WAF_ATTACK_VECTORS:
16-
page, _, _ = get_page(get=vector)
16+
page, _, code = get_page(get=vector)
1717
retval = "ASP.NET has detected data in the request that is potentially dangerous" in (page or "")
1818
retval |= "Request Validation has detected a potentially dangerous client input value" in (page or "")
19+
retval |= code == 500 and "HttpRequestValidationException" in page
1920
if retval:
2021
break
2122

0 commit comments

Comments
 (0)