Subdomain Takeover qsurvey.mozilla.com
A subdomain of Mozilla, qsurvey.mozilla.com, could be taken over because the survey platform's 'closed' link status was not filtered, allowing an attacker to host arbitrary content on the Mozilla domain. An attacker could use this for phishing, fake login forms, and stealing credentials or cookies from Mozilla users.
- Fixed in 13 days
- Paid in 17 days
- Disclosed after 13 days
Created attachment 8949930
Captura de pantalla 2018-02-09 a la(s) 22.02.07.png
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
Steps to reproduce:
Hi team, I found a new way to takeover qsurvey.mozilla.com
Description:
Regarding to last bug found (https://bugzilla.mozilla.org/show_bug.cgi?id=1414696) which was patched successfully, I notice over SG app that the feature 'Link Status -> closed' is not filtered and can be used as an option for create evil arbitrary content over qsurvey.mozilla.com and use the domain as owner.
*Reproduction Steps (user side)
(With the Last fix working oK)
1) Go to http://qsurvey.mozilla.com/s3/1?__slug=sgiz.mobi/s3/normal-survey
2) You notice that the request is automatically redirected to [ http://www.surveygizmo.com/s3/online-survey-link-invalid/?error=link_validation ]. The last fix is working oK.
--cut-here--
curl -vL http://qsurvey.mozilla.com/s3/1?__slug=sgiz.mobi/s3/normal-survey
* Trying 54.208.81.3...
* TCP_NODELAY set
* Connected to qsurvey.mozilla.com (54.208.81.3) port 80 (#0)
> GET /s3/1?__slug=sgiz.mobi/s3/normal-survey HTTP/1.1
> Host: qsurvey.mozilla.com
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 302 Found
< Server: Apache
< location: http://www.surveygizmo.com/s3/online-survey-link-invalid/?error=link_validation
--cut-here--
(Now With the new bypass: )
New takeover PoC Link:
1) Go to http://qsurvey.mozilla.com/s3/1?__slug=sgiz.mobi/s3/tkobyak1t4
2) You see the popup alert and the subdomain taken
or
1) http://qsurvey.mozilla.com/s3/ak1t4?__slug=sgiz.mobi/s3/tkobyak1t4
2) You see the popup alert and the subdomain taken
--cut-here--
curl -vL http://qsurvey.mozilla.com/s3/1?__slug=sgiz.mobi/s3/tkobyak1t4
* Trying 54.165.216.55...
* TCP_NODELAY set
* Connected to qsurvey.mozilla.com (54.165.216.55) port 80 (#0)
> GET /s3/1?__slug=sgiz.mobi/s3/tkobyak1t4 HTTP/1.1
> Host: qsurvey.mozilla.com
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Sat, 10 Feb 2018 01:11:42 GMT
< Server: Apache
--cut-here--
*Reproduction Steps (SurveyGizmo side)
1) Login to your SG Account
2) Create a normal survey and save
3) Go to Share option and click over "customize" link
4) Go to settings tab -> over "Link Status" click on "Closed" and save
5) Now Open this url http://qsurvey.mozilla.com/s3/1?__slug=[put-your-above-survey-link-here]
6) You see that the content of your survey now is over qsurvey.mozilla.com
FIX & MITIGATION on SG:
*Filter and validate properly all 'closed surveys links' to avoid any arbitrary content injection over branded customers domains
Security Impact:
An attacker can utilize this bug for targeting mozilla Users by fake login forms, spread phishing, steal sensitive Users information (accounts, steal credentials, cookies, credit card information, etc) over qsurvey.mozilla.com.
Let me know if you need anything else and feel free to ask about any concern,
kind regards,
@ak1t4
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 survey platform did not validate or filter links for surveys whose status was set to 'closed', allowing arbitrary survey content to be served under the branded subdomain.
Impact
An attacker could use the Mozilla subdomain to host fake login forms and phishing pages, potentially stealing credentials, cookies, or other sensitive user information.
What the attacker needed
A SurveyGizmo account; ability to create a survey; victim visits the crafted link
The fix
The survey platform should properly filter and validate all closed survey links to prevent arbitrary content injection on branded customer domains.
How it was found
- Log in to the SurveyGizmo account.
- Create a normal survey and save it.
- Go to the Share option and click the customize link.
- In the settings tab, set Link Status to Closed and save.
- Open the Mozilla subdomain URL with the survey link as the slug parameter.
- Observe that the survey content is now served on qsurvey.mozilla.com.
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.
A subdomain is a part of a website's address, like qsurvey.mozilla.com. The survey service let people create surveys and link them to that Mozilla address. The report found that a setting called 'closed' was not checked properly, so someone could make their own survey appear on the Mozilla address and trick users.
What is Subdomain takeover?
A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.