Slide 10
Slide 10 text
XSS PREVENTION
• Use a templating language that escapes HTML by default
• Always be wary of user modifiable anything. (Content, URLs,
Cookies, Headers)
• Know which jQuery methods escape and which don’t (html()
versus text())
• Avoid in-house sanitization tools
• Content Security Policy Headers