Can an XSS be craft inside the following JS.
$(function () {
$("#panel").find(".form").each(function (index) {
var that = this;
$(that).overload();
});
$("#panel").find(".form").find("[name=link]").each(function (index) {
var that = this;
$(that).on("click", function (event) {
$(that).select();
});
});
$("#panel").find(".form").find("[href=#show]").each(function (index) {
var that = this;
$(that).on("click", function (event) {
prompt("HardcodedText", $(that).text());
});
});
});
</script>
The page url is something like so https://www.mylabtest.com#show I tried the following but neither worked
https://www.mylabtest.com#show]");+alert(1);//
https://www.mylabtest.com#show]");<script>alert(1);</script>