Skip to content
Subdomain takeover Disclosed report Beginner

Subdomain takeover in GitLab Pages [george.ratelimited.me]

GitLab Pages allowed a subdomain to be claimed without verifying domain ownership, so an attacker could take over any subdomain pointing to GitLab Pages. This could enable cookie theft, phishing, and bypassing security policies.

fdeleite Follow

Originally disclosed on HackerOne

  • Fixed in under an hour
  • Disclosed after 2 months

It's possible to take over subdomains that point to GitLab Pages. While adding a subdomain no verification of domain ownership is required.

POC Steps

  1. Go to http://george.ratelimited.me/ (tested in Firefox)
image.png
image.png From the original on HackerOne

Impact

Attackers could perform several attacks like:

  • Cookie Stealing
  • Phishing campaigns.
  • Bypass Content-Security Policies and CORS.

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

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

Impact

Attackers could steal cookies, run phishing campaigns, and bypass Content-Security-Policy and CORS protections on the taken-over subdomain.

What the attacker needed

A subdomain pointing to GitLab Pages

How it was found

  1. Visit the subdomain that points to GitLab Pages.

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.

When you add a custom domain to a hosting service, the service should check that you really own that domain. Here, GitLab Pages did not check, so anyone could claim a domain that was already pointing to GitLab Pages. That let an attacker serve their own content on someone else's subdomain.

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 by fdeleite

View all

18 more disclosed reports, best first.

More from RATELIMITED

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.