How (best practice) to deal with XSS?

I am using ASP.NET, and the ASP.NET page has a validate attribute that validates XSS checks. However, I would like to know that this is really enough?

I visited part of a related post on stackoverflow and it helped me, but I want to understand how to plan XSS when developing websites?

Do I need to test XSS on the client side, AJAX? How to do it? Are there any tools that can help in testing XSS?

Thanks,

+4
source share
2 answers

These are the basics:

  • Do not allow HTML input
  • Always html encode input when displaying it
  • Use Microsoft's AntiXSSLibrary or similar library
+4
source

Check this out: HTML Permission and XSS Prevention @ shiflett.org

+2
source

Source: https://habr.com/ru/post/1303802/


All Articles