06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Register
Aa · Display
Themes
Type size
Density
Bug Bounty · r/BugBounty · 127d · 2 min read

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

…

Discussion

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

The freshest blend of security news delivered to you. Text and HTML, one-click unsubscribe. Free.

How often
Your desks