Patch related to #6093

This commit is contained in:
Miroslav Štampar 2026-08-10 13:42:38 +02:00
parent 3d1258d57d
commit f9a45c6755
3 changed files with 84 additions and 6 deletions

View file

@ -20,7 +20,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.8.21"
VERSION = "1.10.8.22"
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)

View file

@ -868,6 +868,19 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
maxChar = maxValue = charTbl[-1]
minValue = charTbl[0]
else:
# every probe answered positively - the response model was calibrated on
# the bare page while each probe also pays the query's own cost (e.g.
# COUNT(*) on a huge table), so re-key it and let it rebuild on the payload
if timeBasedCompare and kb.responseTimeMode is None and not conf.disableStats:
kb.responseTimeMode = expression
warnMsg = "all inference probes for the current value answered "
warnMsg += "positively. Recalibrating the time-based response model "
warnMsg += "against the payload's own query cost"
logger.warning(warnMsg)
return getChar(idx, originalTbl, continuousOrder, expand, shiftTable, retried, restricted)
kb.disableShiftTable = True
return None
else: