securityxssdata-entryserver-side-attacksclient-side-attacks

XSS attack vectors


What are some common XSS vectors for websites aside from unsanitized input from text fields finding there way back into pages? Trying to prevent malicious access to csrf tokens in cookies. I'm escaping unsafe characters from text inputs (probably will end up adding that in Java servlets as well before database inserts or printing to UI). Where else should I be looking for XSS entering the site?


Solution

  • If I understand the question correctly, you mitigated some forms of reflected and stored XSS, by encoding user input from input fields on the UI.

    You should be aware of a few things:

    The general OWASP XSS page is very useful. They also have a few guides: