diff --git a/lib/core/settings.py b/lib/core/settings.py index 3fa82e388..2bcd0df98 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.83" +VERSION = "1.10.11.84" 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/techniques/error/use.py b/lib/techniques/error/use.py index f89b5afee..8062d3b29 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -213,6 +213,10 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False): if isinstance(retVal, six.string_types): retVal = htmlUnescape(retVal).replace("
", "\n") + # Note: SQLite's error message of JSON_EXTRACT (e.g. "bad JSON path: '...'") quotes the (path) value by doubling its single quotes + if Backend.isDbms(DBMS.SQLITE) and not conf.hexConvert and "JSON_EXTRACT" in (getTechniqueData().vector or ""): + retVal = retVal.replace("''", "'") + retVal = _errorReplaceChars(retVal) if retVal is not None: