From 3fdf0058746d5d36804988767cc2e525ba2af50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0tampar?= Date: Thu, 12 Nov 2026 16:25:58 +0100 Subject: [PATCH] Fix for --scope/--crawl-exclude not applied to forms found in scripts (e.g. jQuery's $.post) --- lib/core/common.py | 3 +++ lib/core/settings.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index cc44162ee..4c6e4df1c 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -5078,6 +5078,9 @@ def findPageForms(content, url, raiseException=False, addToTargets=False): data = data.strip("['\"]") retVal.add((url, HTTPMETHOD.POST, data, conf.cookie, None)) + # Note: same filtering for forms found inside scripts (e.g. jQuery's $.post(...)) as for regular ones + retVal = set(_ for _ in retVal if not (conf.crawlExclude and re.search(conf.crawlExclude, _[0]) or conf.scope and not re.search(conf.scope, _[0], re.I) or not checkSameHost(response.geturl(), _[0]))) + if not retVal and not conf.crawlDepth: errMsg = "there were no forms found at the given target URL" if raiseException: diff --git a/lib/core/settings.py b/lib/core/settings.py index 1f7c01865..0da7d33d7 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.10.11.54" +VERSION = "1.10.11.55" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)