Skip to content
Subdomain takeover Disclosed report Intermediate

Google Cloud DNS hijacking of org-ci.gke.gitlab.net

The subdomain org-ci.gke.gitlab.net pointed to an unclaimed Google Cloud DNS zone, allowing an attacker to claim it and control DNS records. This could enable cookie theft for .gitlab.net, stored XSS, phishing, and hosting malicious content.

GitLab

Originally disclosed on GitLab

  • Fixed in 20 days
  • Disclosed after 20 days

HackerOne report #1823175 by d0xing on 2023-01-05, assigned to Ottilia Westerlund:

Report | How To Reproduce

Report

Hi!

I discovered that org-ci.gke.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://org-ci.gke.gitlab.net/ZDB4aW5nCg.html

Mitigation

  • 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).
  • Account takeovers (cookies set to .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 DNS zone for the subdomain was not properly claimed or secured, leaving it open to takeover.

Impact

An attacker could add arbitrary DNS records, steal cookies set for .gitlab.net, execute stored XSS, conduct phishing, and host malicious content.

What the attacker needed

Unclaimed Google Cloud DNS zone

The fix

The NS records to the zone should be removed to prevent takeover.

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 DNS zone is like a phonebook for a domain, and if it is left unclaimed, anyone can take it over. Here, the attacker claimed the zone and could then redirect the subdomain to their own server, potentially stealing cookies or tricking 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.

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.