diff --git a/lib/core/settings.py b/lib/core/settings.py index e405a32ba..57f5d7b0f 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.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) diff --git a/lib/techniques/xxe/inject.py b/lib/techniques/xxe/inject.py index 042177be5..3c2c3aa2a 100644 --- a/lib/techniques/xxe/inject.py +++ b/lib/techniques/xxe/inject.py @@ -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: