Say I have the a website with the following code on it:
<input type="text" id="search-text" name="query" value="?" />
Double quotes aren't escaped so I can break out of the value attribute, however, I can't break out of the HTML tag itself as '<' and > are being filtered out.
My goal here is to get a javascript popup to appear.
- There's the
onfocusattribute so I guess if someone clicked on the text input box a javascript popup could appear. - However is there a way to make a javascript popup appear when the page first loads?
<inputtag to start a<scripttag, let alone not close a<scripttag I'm already in. I'm not aware of any others that'll help either but if you are aware of one do feel free to post it as the answer.. – neubert Aug 22 '15 at 18:42autofocusattribute essential to understanding XSS? – neubert Aug 22 '15 at 20:29