xss - Cross Site Scripting disturbs UI -


when enter script in textbox , hit submit button, script executes , disturbs ui. have used xssfilter block suspicious text, no doubt works partially , replaces suspicious text, prints junk characters in ui.

for ex: entered "alert("123");", below textbox value:

and in textbox, displaying me :"alert(".

my requirement : want entire text , script should not execute.

you should encode rather filter. sounds " ends value attribute of input tag. see owasp xss prevention cheat sheet.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -