Skip to content
Subdomain takeover Disclosed report Beginner

Subdomain takeover of triage-serverless.gitlab.com

A GitLab subdomain pointed to an unclaimed cloud resource, allowing an attacker to claim it and serve content under the trusted domain. This could enable cookie theft, stored XSS, denial of service, and phishing.

GitLab

Originally disclosed on GitLab

  • Fixed in 4 days
  • Disclosed after 4 days

HackerOne report #1770997 by d0xing on 2022-11-11, assigned to Ottilia Westerlund:

Report | How To Reproduce

Report

Hi!

I discovered that triage-serverless.gitlab.com was pointing to an unclaimed GCP resource, making it vulnerable to subdomain takeover.
I've managed to claim it in my GCP-account, see POC at:
https://triage-serverless.gitlab.com/d0xing-poc

Remediation

  • Remove the DNS record

Best regards,
d0xing

Impact

  • Cookies set to .gitlab.com will be shared with this subdomain and can be obtained
  • Stored XSS (arbitrary javascript code can be executed in a users browser, see PoC)
  • Denial of Service via cookie bomb makes the root domain unavailable (see PoC)
  • 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 a dangling DNS record pointing to a deprovisioned cloud resource that anyone could claim.

Impact

Cookies for .gitlab.com could be stolen, stored XSS could run in users' browsers, a cookie bomb could make the root domain unavailable, and the subdomain could host phishing content.

What the attacker needed

Unclaimed cloud resource; DNS record pointing to it

The fix

The DNS record should be removed.

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 subdomain takeover happens when a subdomain points to a service anyone can claim. Here the attacker took over a GitLab subdomain and could steal cookies or run scripts.

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.