Web Dev: Understanding CSRF and XSS