This commit is contained in:
Miroslav Stampar
2023-01-09 15:34:08 +01:00
parent 7940b572ef
commit 96adc7c098
2 changed files with 4 additions and 1 deletions

View File

@@ -2655,6 +2655,9 @@ def _basicOptionValidation():
raise SqlmapSyntaxException(errMsg)
if conf.paramExclude:
if re.search(r"\A\w+,", conf.paramExclude):
conf.paramExclude = r"\A(%s)\Z" % ('|'.join(re.escape(_) for _ in conf.paramExclude.split(',')))
try:
re.compile(conf.paramExclude)
except Exception as ex: