This document discusses various topics relating to web security, including:
- The same origin policy which isolates scripts and resources from different origins to prevent access.
- Cross-site scripting (XSS) which can occur when user inputs containing scripts are displayed on a webpage without sanitization, allowing attackers to execute scripts in a victim's browser.
- How XSS was used in a worm on MySpace that infected many users by adding the attacker as a friend when their profile was visited.
- The use of cookies by websites to maintain state in the stateless HTTP protocol and how session hijacking is a risk if cookies are stolen.