mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-08 01:33:48 +03:00
Minor adjustment
This commit is contained in:
parent
a9454fbb43
commit
f67a38dba9
|
@ -851,11 +851,12 @@ def heuristicCheckSqlInjection(place, parameter):
|
||||||
|
|
||||||
kb.heuristicMode = True
|
kb.heuristicMode = True
|
||||||
|
|
||||||
payload = "%s%s%s" % (prefix, "%s'%s%s" % (randomStr(), DUMMY_XSS_CHECK_APPENDIX, randomStr()), suffix)
|
value = "%s%s%s" % (randomStr(), DUMMY_XSS_CHECK_APPENDIX, randomStr())
|
||||||
|
payload = "%s%s%s" % (prefix, "'%s" % value, suffix)
|
||||||
payload = agent.payload(place, parameter, newValue=payload)
|
payload = agent.payload(place, parameter, newValue=payload)
|
||||||
page, _ = Request.queryPage(payload, place, content=True, raise404=False)
|
page, _ = Request.queryPage(payload, place, content=True, raise404=False)
|
||||||
|
|
||||||
if DUMMY_XSS_CHECK_APPENDIX in (page or ""):
|
if value in (page or ""):
|
||||||
infoMsg = "heuristic (XSS) test shows that %s " % place
|
infoMsg = "heuristic (XSS) test shows that %s " % place
|
||||||
infoMsg += "parameter '%s' might " % parameter
|
infoMsg += "parameter '%s' might " % parameter
|
||||||
infoMsg += "be vulnerable to XSS attacks"
|
infoMsg += "be vulnerable to XSS attacks"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user