クロスサイトスクリプティング 01 - yujitounai/helloworld GitHub Wiki
単純な反射型XSS
<div class="box">
<form method="get" action="">search
<input name="word" type="text">
<input type="submit">
</form>
</div>
<?php
echo "<h1>".filter_input(INPUT_GET, 'word')."</h1>";
?>
/test.php?word=<script>alert(1)</script>