Closed Bug 1335957 Opened 9 years ago Closed 9 years ago

Subdomain Takeover at qsurvey.mozilla.com

Categories

(Websites Graveyard :: Your Web, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adeveloper870, Assigned: claudijd)

References

Details

(Keywords: reporter-external, sec-moderate, wsec-impersonation)

Attachments

(4 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36 Steps to reproduce: Hi team, i ve been able to complete takeover subdomain http://qsurvey.mozilla.com/ 1) Go to http://qsurvey.mozilla.com/s3/20e63ab83b15 2) You see the alert box and complete subdomain takeover IMPACT: An attacker can use this for phishing purposes, redirect users to malicious site, execute evil script or steal sensitive users information ,etc Actual results: The http://qsurvey.mozilla.com/ DNS entries is pointing to 3rd party app (surveygizmo.com) qsurvey.mozilla.com is an alias for privatedomain.sgizmo.com. Expected results: I veen able to bypass the branded private domain feature at surveygizmo.com and complete takeover qsurvey.mozilla.com
Assigning to Jonathan for bounty triage.
Assignee: nobody → jclaudius
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: sec-bounty?
Hi, let me know if more info needed or any help to fix this asap, regards, @ak1t4 https://hackerone.com/ak1t4 https://twitter.com/knowledge_2014
ak1t4: confirmed the behavior, we'll escalate the issue with the service owner.
gregg: we've got a subdomain takeover issue with qsurvey.mozilla.com. The impact is that this user can now control all the content on qsurvey, which would impact any users using the qsurvey backed service. Things we need to know are, are we still using the service? (if not, we can just delete the DNS entry | if so, we need to work ak1t4 to perform a safe handoff of this domain back into our control). We will likely want to raise the root cause issue with surveygizmo if ak1t4 hasn't already done so. ak1t4: many domain takeover issues are a result of an organization not properly claiming the domain in question. You stated in comment 0 that you bypassed "the branded private domain feature at surveygizmo.com". How did you perform this bypass and have you already reported it to surveygizmo?
Flags: needinfo?(glind)
Flags: needinfo?(adeveloper870)
Temporarily marking this sec-critical, because I believe the defacement could be user-facing. Also, because it's unclear whether this is a misconfig on our part or a core bug in surveygizmo. sec-level can be reassessed when we have more context.
Reached out to gregg on IRC, also trying to get in touch with someone at SurveyGizmo
Email sent to support@surveygizmo.com asking for support, gregg has been CC'd.
Just got off a call with the service owners. We believe we've successfully claimed the domain and existing surveys are still active in our admin console (eg. not your traditional domain takeover scenario). We think it's possible it could be one of two issues: 1.) A potential bypass vuln that allows SurveyGizmo users to claim a domain they are not authorized for (if that is so, the researcher is providing survey parity, as some surveys are still active). This is what the reporter described above. 2.) S3 bucket compromise at SurveyGizmo (potential RW perm compromise of some sort). This seems plausible because survey content is preserved. Options for remediation include (in increasing levels of seriousness/paranoia): 1.) Work with survey gizmo to get this corrected ASAP (preferred, assuming we get timely responses from surveygizmo) 2.) Stand up an under construction site and redirect DNS to that site until this is sorted out 3.) redirect DNS to mozilla.org (and potentially deal with 404s until we're sorted)
Hi team, for clarify the issue: SurveyGizmo detects if any other user has claimed determined domain, they filter with a match and all its ok. But going more deeper i found that when the user creates a page, this page has an url address with possibility of change that address to another own domain. When the request is done, i intercept and change the domain address to any other domain who has privatedomain.sgizmo.com DNS entry successfuly. The problem is that endpoint which permits add any domain through "change url" feature at surveygizmo. If you need more details about this , tell me, i create a video poc or reproduction steps for this. Regards, @akit4
akit4: thanks for the details, I'll relay to surveygizmo, whom we're currently working with to solve the issue.
Flags: needinfo?(adeveloper870)
akit4: please send over any additional details we can send over to the vendor to help them understand and remedy the issue.
Flags: needinfo?(glind)
Flags: needinfo?(adeveloper870)
akit4: just a heads up that SurveyGizmo has shutdown the surveys on your account temporarily until they can remedy the issue. They have their development team actively working on the fix now. We hope to have details and availability on the fix soon. They just ask that you keep your surveys disabled so it doesn't affect our account.
hi jonathan, now im creating a video poc showing the issue for send them and catch quickly the issue and launch a fix asap, please wait me a minutes for this, thanks!
akit4: I believe SurveyGizmo already has it understood, they said they disabled your surveys temporarily until the fix is available. Don't worry about the video, although I thank you for quick responses and willingness to help here.
Ok jonathan no problem, [ bypass domain branded restriction at SurveyGizmo: ] These are the Reproduction Steps for bypass the branded domain restriction: 1) Create an account on survey gizmo 2) Create a survey 3) Go to SHARE options and change link 4) Inspect element and change the string link with survey.anysubdomain.com 5) Save and open the link 6) You see the survey page and the subdomain takeover
I just heard back from SurveyGizmo that a patch has been released to address this issue. Exact response from their support team below... "Our development team has released a fix to patch the vulnerability as of now. This being the issue allowing the steps your researcher explained to affect the change to the domain. We are working as well to follow up with any records setup. Could you ask your researcher to halt on searching for further domains to confirm or test the issue? If he/she could note how they were able to discover those domains were lined to SG, it would be greatly appreciated." akit4: could you please see the second paragraph from SurveyGizmo and provide any feedback on that front?
Additionally, it appears the original PoC is still active for some reason. I will be following up with SurveyGizmo to address this.
Hi jonathan, thanks for keep me update about this and for sharing the response of SurveyGizmo team: (I have stopped all activity on my surveygizmo account during this report for permit the team working in a fix) I find all the domains linked at surveygizmo with some of this tasks: 1) Using google dorks we can find several domains using the service like example "powered by surveygizmo" dork -> shows 29.400 results (we need filter that results for search only branded domains with dns entries pointing to sgizmo alias 2) Then i create automatic search with scripts that looks for domains who are pointed to the alis CNAMES -> privateddomain.sgizmo.com or www.sg53.net or www.surveygizmo.co.uk etc. 3) And Using some lookups reverse dns domains I hope this can help the SG Team to clarify a bit more this issue and they can fix it asap! Regards, @ak1t4
I re-check the issue and seems patched! The output is : There was an error saving your link x Awesome!
Hi jonathan! any updates? thanks!
ak1ta: The last couple updates I received from SurveyGizmo indicated that the fix was in place, that they were doing an audit of all their customers to determine those affected, and that they were reaching out to any/all customers that were affected. I asked if a public notification would happen for this issue, and the support person indicated that they were unsure if a public communication was planned yet. I would love to see them issue a public statement about the issue once they feel they have the larger issue under control. As for qsurvey.mo, I believe this issue is sufficiently resolved. Thank you ak1ta for your hard work here and helping us resolve this!
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(adeveloper870)
Resolution: --- → FIXED
Also, as a clarification point around potential impact, this particular domain is the landing destination for Firefox's Help => Submit Feedback... menu option. This means that a potential attacker could have potentially modified the form here (https://qsurvey.mozilla.com/s3/FirefoxInput/) to be something offensive or malicious to end users seeking to provide feedback on Firefox.
Flags: sec-bounty? → sec-bounty+
ak1t4: This domain is not an eligible site for the bounty program. However, the bounty team met today and considering potential impact of the bug for both Mozilla and all SurvyGizmo customers that has been mitigated, we're offering a bounty on this. Thank you again for your contribution!
Hi jonathan! I am very happy to hear this, thanks to all the mozilla team and the great and awesome support from your side! Is my first bug report to mozilla, How i claim the bounty? thanks a lot Thanks!
Hi team! i found a New Bypass to takeover this domain again Reproduction Steps and Poc 1) Go to https://qsurvey.mozilla.com/r/541247_58b796599439b4.63788034 2) You see the alert box and the subdomain takeover Private Screenshot -> https://unsee.cc/dagopezu/ Please let me know if more info needed or any help, Kind Regards, @ak1t4
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
ak1ta: thanks for the report, we'll re-engage with them immediately.
See Also: → 1344213
Moving the discussion for this bug to bug 1344213, as it's a separate issue.
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
Group: websites-security
Reporter -- can I ask how you would like to be credited on the hall of fame?
Hi; thanks for.your.message. Name: Akita (Lucas Moreira) Twitter: https://twitter.com/knowledge_2014 Hackerone: https://hackerone.com/ak1t4 If you.need.anything else let.me.know Thanks so much Kind regards, Ak1t4
(In reply to ak1t4 from comment #32) > Hi; thanks for.your.message. > > Name: Akita (Lucas Moreira) > Twitter: https://twitter.com/knowledge_2014 > Hackerone: https://hackerone.com/ak1t4 > > If you.need.anything else let.me.know > Thanks so much > Kind regards, > Ak1t4 Hi , i would appreciate a lot if you can change my HOF data.to only: Name: Akita Twitter: https://twitter.com/knowledge_2014 Hackerone: https://hackerone.com/ak1t4 Thanks a lot, kind regards.
April: ^^^
Flags: needinfo?(april)
I'll make sure to fix this when I do the Q2 2017 updates. :)
Flags: needinfo?(april)
Hi @april, Thank you very much and apologize for the inconvenience regards, @ak1t4
Not a big deal at all, don't worry about it. :)
Product: Websites → Websites Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: