3 Cases of DOM XSS in Bug Bounty
The article describes several DOM-based cross-site scripting vulnerabilities where URL parameters or location.href are written into the page without proper sanitisation, allowing an attacker to execute JavaScript in a victim's browser. The examples include parameters like sca_message, poster, attachmentHighlight, gh_src, and target being used to inject script.
Hi guys, I am Kerstan. Today, I will share you how find DOM XSS in bug bounty from three cases.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute arbitrary JavaScript in the victim's browser, potentially leading to information disclosure and session hijacking.
What the attacker needed
Victim clicks a crafted link
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
DOM XSS happens when a website takes something from the URL, like a parameter, and puts it directly into the page without cleaning it. An attacker can craft a link that makes the victim's browser run malicious JavaScript, which could steal data or perform actions as the user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.