クロスサイトスクリプティング 06 - yujitounai/helloworld GitHub Wiki
javascriptスキームのXSS
<div class="box">
<form method="get" action="">enter url
<input name="url" type="text">
<input type="submit">
</form>
</div>
<?php
echo "<h1><a href=\"".htmlspecialchars(filter_input(INPUT_GET, 'url'), ENT_QUOTES, 'UTF-8')."\">link</a></h1>";
?>
xss-06.php?url=javascript:alert(1)