mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-20 07:00:25 +00:00
Fix for --oob-server (own) silently allowing usage of public service (webhook.site) for XXE file exfiltration
This commit is contained in:
parent
b3608f33ca
commit
d115a0a4cf
2 changed files with 8 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.11.79"
|
||||
VERSION = "1.10.11.80"
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -821,6 +821,13 @@ def _tryOobExfil(xml, rootName):
|
|||
if not fileName:
|
||||
return None
|
||||
|
||||
# Note: provided (own) OOB server is not a consent for contacting a public service (needed for hosting of the external DTD)
|
||||
if conf.get("oobServer"):
|
||||
message = "file exfiltration requires hosting of an external DTD, which provided OOB server can't do. "
|
||||
message += "Do you want to use public service (webhook.site) for that? [y/N] "
|
||||
if not readInput(message, default='N', boolean=True):
|
||||
return None
|
||||
|
||||
wh = WebhookSite()
|
||||
exfilToken = wh.newToken()
|
||||
if not exfilToken:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue