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

Skip to content

Commit 39a46d6

Browse files
committed
Skip custom header injection check in --forms/--crawl
1 parent 1b1c37e commit 39a46d6

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.11.11"
21+
VERSION = "1.3.11.12"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/core/target.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ def process(match, repl):
257257
kb.processUserMarks = True
258258

259259
for place, value in ((PLACE.URI, conf.url), (PLACE.CUSTOM_POST, conf.data), (PLACE.CUSTOM_HEADER, str(conf.httpHeaders))):
260+
if place == PLACE.CUSTOM_HEADER and any((conf.forms, conf.crawlDepth)):
261+
continue
262+
260263
_ = re.sub(PROBLEMATIC_CUSTOM_INJECTION_PATTERNS, "", value or "") if place == PLACE.CUSTOM_HEADER else value or ""
261264
if kb.customInjectionMark in _:
262265
if kb.processUserMarks is None:

0 commit comments

Comments
 (0)