dom xss mini write up
i was reading my target minified javascript file and while it was a pain, i found this ``` var av = ["task", "board", "inbox"]; // and some other more :) var bl = /(script|javascript:|onerror|onload|onclick)/i; var params = new URLSearchParams(location.hash.slice(1)); var v = params.get("view"); var b= params.get("banner"); if (av.includes(v) && b && !bl.test(b)) { document.getElementById("deep-link-banner").innerHTML = b; } ``` as you can see it's blocking some keywords to filter any malicious inputs, and some validation using an if statement. atp the issue was pretty clear, they had loose validation and i can sneak a dom xss payload and see where things go, fortunately for me and
…