Closed
Bug 1437232
Opened 8 years ago
Closed 8 years ago
Subdomain Takeover qsurvey.mozilla.com
Categories
(Websites :: Other, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: adeveloper870, Assigned: allysa.netzel)
Details
(Keywords: reporter-external, sec-high, wsec-takeover)
Attachments
(1 file)
|
137.54 KB,
image/png
|
Details |
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
Comment 1•8 years ago
|
||
Thank you for the detailed instructions, ak1t4. I was able to reproduce this.
Ally - can your team please look at this instance of takeover bug and produce a fix?
Assignee: nobody → allysa.netzel
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(allysa.netzel)
Hi - Thank you for reporting this! I have passed this information onto our Sys Admins! I will let you know when I have more information :)
Flags: needinfo?(allysa.netzel)
Hi there! that's was fast..
I have re-tested this issue with all possible link-url combinations and all responses are 302 with redirect output '?error=link validation' which result over -> http://www.surveygizmo.com/s3/online-survey-link-invalid/?error=link_validation
Curl output:
curl -vL http://qsurvey.mozilla.com/s3/akita-takeover.html?__slug=sgiz.mobi/s3/4612f869fc6b
* Trying 54.165.216.55...
* TCP_NODELAY set
* Connected to qsurvey.mozilla.com (54.165.216.55) port 80 (#0)
> GET /s3/akita-takeover.html?__slug=sgiz.mobi/s3/4612f869fc6b HTTP/1.1
> Host: qsurvey.mozilla.com
>
< HTTP/1.1 302 Found
< Date: Wed, 14 Feb 2018 22:03:34 GMT
< Server: Apache
< Cache-Control: no-cache, must-revalidate, no-store, private
< X-output: html
< Expires: Sat, 26 Jul 1997 05:00:00 GMT
< Location: http://www.surveygizmo.com/s3/online-survey-link-invalid/?error=link_validation
< Content-Length: 0
*Tested ok firefox/chrome/safari/curl
The issue Seems fixed OK from this side, nice work :)
Comment 5•8 years ago
|
||
Thank you Ally for the quick fix and thanks ak1t4 for verifying the fix.
Hi there, very welcome and thanks Caglar and Ally for the great work done behind the monitor :)
Hi team, since the bug now is fixed can be closed as resolved?
thanks in advance,
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Thanks Jonathan,
sorry for ask, this bug is on scope and eligible for bounty?
Updated•8 years ago
|
Flags: sec-bounty?
Updated•8 years ago
|
Flags: sec-bounty? → sec-bounty+
Comment 9•8 years ago
|
||
Akita, can I ask how you would like to be credited on our Hall of Fame? I need the name you'd prefer, as well as a URL to link to, if you'd like us to do that.
Thanks!
| Reporter | ||
Comment 10•8 years ago
|
||
Hi there, of course!
could be: Ak1t4
url: https://twitter.com/knowledge_2014
Thanks in advance!
Comment 11•8 years ago
|
||
No problem. Previously you had been credited as "Akita (Lucas Moreira)". Would you like me to go back and change it?
| Reporter | ||
Comment 12•8 years ago
|
||
yes! would be great if only appears as "Ak1t4". :) thank you
Updated•7 years ago
|
Keywords: wsec-takeover
Updated•7 years ago
|
Group: websites-security
Updated•2 years ago
|
Keywords: reporter-external
You need to log in
before you can comment on or make changes to this bug.
Description
•