mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Bug fix (disable HTML decoding in XSS checks)
This commit is contained in:
parent
f550a2281f
commit
0977f6df61
4 changed files with 35 additions and 29 deletions
|
|
@ -1104,6 +1104,7 @@ def heuristicCheckSqlInjection(place, parameter):
|
|||
logger.warn(infoMsg)
|
||||
|
||||
kb.heuristicMode = True
|
||||
kb.disableHtmlDecoding = True
|
||||
|
||||
randStr1, randStr2 = randomStr(NON_SQLI_CHECK_PREFIX_SUFFIX_LENGTH), randomStr(NON_SQLI_CHECK_PREFIX_SUFFIX_LENGTH)
|
||||
value = "%s%s%s" % (randStr1, DUMMY_NON_SQLI_CHECK_APPENDIX, randStr2)
|
||||
|
|
@ -1123,6 +1124,7 @@ def heuristicCheckSqlInjection(place, parameter):
|
|||
logger.info(infoMsg)
|
||||
break
|
||||
|
||||
kb.disableHtmlDecoding = False
|
||||
kb.heuristicMode = False
|
||||
|
||||
return kb.heuristicTest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue