Even Duplicates Have Stories — My XSS Discovery on Experian
A URL parameter accepted a javascript: scheme and was used in a redirect, allowing script execution in the victim's browser. An attacker could craft a POST form that auto-submits the payload to trigger the XSS.
medium.com
Published on medium.com
While hunting on a bug bounty program, I started by gathering wildcard assets listed in the scope. Using tools like subfinder and crt.sh, I enumerated multiple subdomains and eventually landed on this interesting one:
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
Root cause
Likely the application failed to validate or restrict the URL scheme in the redirect parameter, allowing javascript: URIs.
Impact
An attacker could execute arbitrary JavaScript in the context of the vulnerable site, potentially stealing session data or performing actions on behalf of the victim.
What the attacker needed
Victim clicks a crafted link or form; attacker hosts a malicious page
How it was found
- Enumerate subdomains using tools like subfinder and crt.sh.
- Identify a parameter named Url that causes a redirect when set to an external URL.
- Replace the Url value with a javascript: payload.
- Craft an HTML form that auto-submits the payload via POST.
- Host the PoC locally and open it in a browser to trigger the XSS.
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.
The website had a feature that took a web address from the user and sent the browser there. The site did not check that the address was a normal web link, so it also accepted a special 'javascript:' link that runs code. This let an attacker run their own script in the victim's browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.