From ca2e847ef6e798037ec52b7adec458f25a920333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0tampar?= Date: Thu, 12 Nov 2026 16:25:57 +0100 Subject: [PATCH] Fix for -p Cookie also testing whole Cookie header (in case of --cookie) --- lib/core/settings.py | 2 +- lib/core/target.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 3872c0b95..f61af8168 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.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) diff --git a/lib/core/target.py b/lib/core/target.py index 0c73e59af..b11fb96ad 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -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)