security - Adding jQuery and javascript in URI (as null) -
security - Adding jQuery and javascript in URI (as null) -
this security question. boss has asked me find (and show prototype) of possible hacks on site , on one.
there input box on page , using uri javascript (also know void or null script) , have include javascript file , jquery file (for ease of presentation). next code did not work.
javascript:{{ var e=document.createelement("script"); alert("hello world"); e.src = "http://code.jquery.com/jquery-1.6.2.js";e.type="text/javascript"; document.getelementsbytagname("head")[0].appendchild(e); };}
(after uri encoding) did "hello world" alert box not able find script while using 'inspect element' in chrome. or otherwise no script ran.
if understand right - want include add together new javascript page. solution
and inspect element - right click on element , lastly 1 of menu.
javascript security uri
Comments
Post a Comment