reflected xss on the site qsurvey.mozilla.com in /api/share_footer.php
A reflected cross-site scripting flaw existed in the share_footer.php endpoint, where the contentTITLE parameter was echoed into the page without proper encoding. An attacker could craft a link that runs script in the victim's browser under the site's domain.
- Fixed in 16 days
- Paid in 22 days
- Disclosed after 16 days
how to reproduce:
1. to use a modern browser Firefox, latest version
2. navigate to url:
https://qsurvey.mozilla.com/api/share_footer.php?errors=1|Please%20indicate%20whether%20or%20not%20you%20have%20a%20MarketerGizmo%20Content%20Sharing%20Toolbar.|Please%20provide%20a%20valid%20URL.%20(URL%20must%20begin%20with%20http://%20or%20https://)&contentTITLE=123\%27\%22%3E%3C/script%3E%3Cscript%3Ealert(document.domain)%3C/script%3E&contentURL=123\%27\%22%3E%3C&sAccountEmail=&btn_color=66b5cd&sid=
3. will be shown popup alert with name of 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
Root cause
Likely the contentTITLE parameter was reflected into the HTML response without output encoding, allowing injected markup and script to execute.
What the attacker needed
Victim clicks a crafted link; modern Firefox browser
How it was found
- Open a modern Firefox browser.
- Visit the crafted share_footer.php URL containing the injected contentTITLE value.
- Observe the alert popup showing the domain name.
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 puts user-supplied text into a page without cleaning it, so text can act as code. Here a value in the web address was placed into the page, letting a crafted link run a script in the visitor's browser. The script runs as if it came from the site itself.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.