0

How can I prevent an XSS vulnerability?

I going through the website when I realized that it's possible to do an XSS attack in HTML. I never really knew how to fix this. Does anyone have an idea?

20th Jan 2017, 4:09 PM
Miguel Nunez-Ramirez
Miguel Nunez-Ramirez - avatar
4 Respuestas
+ 1
This is a game / challange if you want to test it out XSS. You will reward a cake if you completed :) https://xss-game.appspot.com
18th May 2017, 6:51 AM
Thomas Hj
Thomas Hj - avatar
0
Do not learn programming on sololearn.
13th Apr 2020, 2:50 PM
rickss1
rickss1 - avatar
- 1
If you accept user input, then you are vulnerable to XSS. To avoid this vulnerability use prepared statements or search for scripting tags in user input.
20th Jan 2017, 5:16 PM
Louis Milotte
Louis Milotte - avatar