I'm trying to test for vulnerabilities in my website. There is a textbox in which I enter the value as follows:
Dummy" /><script>document.alert('XSS Vulnerable');</script><input title="DummyAgain
so that the HTML formed after submitting the form would be
<input name="customerName" size="16" value="Dummy" /><script>document.alert('XSS Vulnerable');</script><input title="DummyAgain" type="text">
But even though, the HTML formed is correct, the javascript does not execute and inspecting the element in firefox/chrome shows the value of the textbox to be exactly the same as I entered!
What am I doing wrong?