I have the following javaScript code in an application, which BURP flags as being possibly vulnerable. However, i have had no luck trying to get it to execute.
var hash = window.location.hash; if(hash){ $('a[href="'+ hash +'"]')[0].click(); }
Is the above code vulnerable and if so, what sort of URL fragment can execute it?
$
is jQuery here?