mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-21 15:41:54 +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
|
|
@ -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