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
Post a Comment