mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-22 13:29:25 -10:00
Fix for -p Cookie also testing whole Cookie header (in case of --cookie)
This commit is contained in:
1 parent
d0fc7512df
commit
ca2e847ef6
2 files changed
+3
-2
No files matched your search
@@ -19,7 +19,7 @@ from lib.core.enums import OS
|
||||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.11.51"
|
||||
VERSION = "1.10.11.52"
|
||||
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)
|
||||
|
||||
+2
-1
@@ -438,7 +438,8 @@ def _setRequestParams():
|
||||
testableParameters = True
|
||||
|
||||
else:
|
||||
condition = intersect(conf.testParameter, [httpHeader], True)
|
||||
# Note: in case of --cookie, its (Cookie) parameters are tested separately (i.e. not the whole header)
|
||||
condition = intersect(conf.testParameter, [httpHeader], True) and not (conf.cookie and httpHeader.upper() == HTTP_HEADER.COOKIE.upper())
|
||||
|
||||
if condition:
|
||||
conf.parameters[PLACE.CUSTOM_HEADER] = str(conf.httpHeaders)
|
||||
|
||||
Reference in new issue
Block a user