Skip to content
XSS Disclosed report Beginner

█████ - DOM-based XSS

A DOM-based cross-site scripting flaw existed on a troubleshooting page where the username field was inserted into the page without proper sanitisation. An attacker could execute arbitrary JavaScript in a victim's browser, potentially stealing cookies or redirecting the user to a malicious site.

yumi Follow

Originally disclosed on HackerOne

  • Triaged in 21 hours
  • Fixed in 47 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 2. In the username field, add the following code:

--><button/autofocus/onfocus=Function("confirm`1`")();//name="XSS

3. The javascript code is correctly executed:

██████

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

The original report as published on HackerOne, by yumi. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 username value into the DOM without sanitising or encoding it, allowing HTML and JavaScript injection.

Impact

An attacker could steal users' cookies or redirect them to a malicious website.

What the attacker needed

Victim visits the troubleshooting page; victim enters the payload into the username field

How it was found

  1. Open the troubleshooting page with the lang parameter set to en.
  2. Enter a crafted payload into the username field.
  3. Observe that 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.

Cross-site scripting (XSS) is when a website lets an attacker sneak their own JavaScript code into a page that other people view. Here, the page took whatever was typed into a username field and put it into the page without cleaning it first, so the browser ran the attacker's code. That code could then read the victim's cookies or send them to another site.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by yumi

View all

5 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.