Closed Bug 1820817 Opened 3 years ago Closed 3 years ago

Hosted Zone Takeover at *.pushbox.prod.cloudops.mozgcp.net

Categories

(Websites :: Other, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dimax5659, Unassigned)

References

()

Details

(Keywords: reporter-external, sec-moderate, wsec-takeover, Whiteboard: [reporter-external] [web-bounty-form] [verif?])

I discovered that it was possible to takeover *.pushbox.prod.cloudops.mozgcp.net by assigning a zone to that name with one of the following nameservers in Google Cloud DNS:

pushbox.prod.cloudops.mozgcp.net. 300 IN NS ns-cloud-d2.googledomains.com.
pushbox.prod.cloudops.mozgcp.net. 300 IN NS ns-cloud-d1.googledomains.com.
pushbox.prod.cloudops.mozgcp.net. 300 IN NS ns-cloud-d4.googledomains.com.
pushbox.prod.cloudops.mozgcp.net. 300 IN NS ns-cloud-d3.googledomains.com.

If a domain points to one of the nameservers listed above it is using Google Cloud DNS, a free service. A SERVFAIL error indicates the domain is vulnerable to take over. To perform the takeover set up a free Google Cloud account then navigate to Cloud DNS. Click Create Zone and then enter the (sub)domain name in the field named DNS name. Your new zone will be given four random Google nameservers. These must match the ones on the vulnerable domain. If they do not match simply delete the zone and create another one, you should be assigned a different random set of Google nameservers. I can take a few attempts to get them to match.

Once the zone was claimed, I was able to create DNS records under this host. Consider the following record:

http://poc.pushbox.prod.cloudops.mozgcp.net/poc.html

Flags: sec-bounty?
Status: UNCONFIRMED → NEW
Ever confirmed: true

Hello,

Thank you for your report.

I can confirm the takeover:

$ curl http://poc.pushbox.prod.cloudops.mozgcp.net/poc.html
<!DOCTYPE html>
<html>
<head>
        <meta charset="utf-8">
        <title>DNS Zone TakeOver</title>
</head>
<body>
        <script>alert("DNS Zone TakeOver by DiMaX!")</script>
        <h1>DNS Zone TakeOver by DiMaX!</h1>
</body>
</html>

I have reached out to our infra team to take a look.

Thanks,
Frida

:DiMax thank you for finding this! I have deleted the NS record for pushbox.prod.cloudops.mozgcp.net so this takeover should be removed shortly.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

:jbuck May I know if this report is eligible for a reward?

The bug bounty team meets weekly and will update this bug when that determination has been made

Ok thanks.

Flags: sec-bounty? → sec-bounty+

Hello,

How will I receive this bounty?

Group: websites-security

Hello,

I still haven't received this award. Can you check your sides?

Can you please email security@mozilla.org to follow up?

Thanks,
Frida

(In reply to Frida K [:frida] from comment #8)

Can you please email security@mozilla.org to follow up?

Thanks,
Frida

Yes I can.

You need to log in before you can comment on or make changes to this bug.