█████ - DOM-based XSS
A DOM-based cross-site scripting flaw existed on a troubleshoot page where a crafted returnUrl parameter and username input allowed script execution. An attacker could use this to steal cookies or redirect users to a malicious site.
- Triaged in 2 hours
- Fixed in 30 days
- Disclosed after 17 months
Greetings,
I've discovered a DOM-based XSS at ██████
Proof of concept:
1. Go to https://███/█████/home/troubleshoot.html?lang=en&returnUrl=https://█████/███████/home/signin.html?returnUrl=https%3A//████/██████████/home/user.html
2. In the username field, add the following code:
--><button/autofocus/onfocus=Function("confirm`1`")();//name="XSS
3. The javascript code is correctly executed
████████
On a side note, the vulnerability work on all moderns browsers (Firefox, Chrome, Opera ...).
Impact
With this vulnerability, an attacker can for example steal users cookies or redirect users on malicious website.
Thanks for your attention and let me know if you need anything. Regards, Yumi
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the page inserted the returnUrl parameter and username value into the DOM without proper sanitisation or encoding, allowing HTML and JavaScript injection.
Impact
An attacker could steal users' cookies or redirect them to a malicious website; the report notes the flaw works on all modern browsers.
What the attacker needed
Victim visits a crafted URL; a username value containing the payload is entered
How it was found
- Open the troubleshoot page with a crafted lang and returnUrl parameter.
- Enter a payload in the username field that breaks out of the existing HTML context and adds an element with an event handler.
- The JavaScript code executes.
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 report has not been written yet. The Original tab links to the source.
XSS is when a website lets an attacker's JavaScript run in another user's browser. Here a value from the web address and a username field led to the attacker's code running in the victim's browser, which could read the victim's cookies.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.