mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-21 15:41:54 +00:00
Fix for SQLite error-based retrieval doubling single quotes (e.g. x"y''z)
This commit is contained in:
parent
3325240680
commit
70702c2ce3
2 changed files with 5 additions and 1 deletions
|
|
@ -213,6 +213,10 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
|
|||
if isinstance(retVal, six.string_types):
|
||||
retVal = htmlUnescape(retVal).replace("<br>", "\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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue