Created
July 22, 2014 19:04
-
-
Save PeeHaa/370cb0940ac2efbcc41c to your computer and use it in GitHub Desktop.
sigh
This file contains hidden or 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
<?php | |
$song = new StdClass; | |
$song->artist = '" onmouseover="alert(\'all your base are belong to us\')" foo="'; | |
?> | |
<form action="#"> | |
<input type="text" name="xss" value="<?php if (isset($song->artist)) echo $song->artist; ?>"> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment