Skip to content
Subdomain takeover Disclosed report Beginner

Google Cloud DNS hijacking of teleport.gitlab.net

The subdomain teleport.gitlab.net had NS records pointing to an unclaimed Google Cloud DNS zone, allowing an attacker to claim that zone and control the subdomain's DNS. The attacker could then add arbitrary DNS records, potentially stealing cookies, hosting malicious content, or conducting phishing.

GitLab

Originally disclosed on GitLab

  • Fixed in 20 hours
  • Disclosed after 20 hours

HackerOne report #1702502 by d0xing on 2022-09-16, assigned to GitLab Team:

Report | How To Reproduce

Report

Hi!

I discovered that teleport.gitlab.net was pointing to an unclaimed Google Cloud DNS zone, making it vulnerable to NS takeover.

I've claimed it in my account and pointed it to a POC I'm hosting:
http://teleport.gitlab.net/ZDB4aW5nCg.html

Remediation

  • Remove the NS records to the zone

Best regards,
d0xing

Impact

The impact of DNS hijacking / NS takeover is:

  • Any DNS records can be added (A, CNAME, MX for receiving/sending emails).
  • Cookies set to .teleport.gitlab.net will be shared with this subdomain and can be obtained
  • Stored XSS (arbitrary javascript code can be executed in a users browser)
  • Phishing
  • Hosting malicious content

How To Reproduce

Please add reproducibility information to this section:

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

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 NS records for teleport.gitlab.net pointed to a Google Cloud DNS zone that was not registered by GitLab, allowing an attacker to claim it.

Impact

An attacker could add arbitrary DNS records, potentially steal cookies set for .teleport.gitlab.net, host malicious content, or conduct phishing.

What the attacker needed

Unclaimed Google Cloud DNS zone; attacker has Google Cloud account

The fix

The NS records pointing to the unclaimed zone should be removed.

How it was found

  1. Discover that teleport.gitlab.net uses NS records pointing to an unclaimed Google Cloud DNS zone.
  2. Claim the zone in a Google Cloud account.
  3. Point the subdomain to a proof-of-concept page hosted by the attacker.

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.

DNS is like the internet's phonebook, turning names like teleport.gitlab.net into IP addresses. Here, the domain's records pointed to a cloud service zone that nobody had claimed, so anyone could take it over and control where the name points. That let the attacker serve their own content under the trusted GitLab name.

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.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Subdomain takeover

The lesson behind this report.

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.