Skip to content
Business logic Disclosed report Beginner

Gitlab pages preserve domains without verification

GitLab Pages let a user attach a custom domain to a project without proving ownership of that domain. An attacker could claim domains belonging to others, which then blocked the real owners from adding those domains to their own pages.

GitLab

Originally disclosed on GitLab

  • Fixed in 2 days
  • Disclosed after 2 days

HackerOne report #928535 by yvvdwf on 2020-07-21:

Hello,

Gitlab allows using customized domains for pages. However the domains are being used without verification their owners.
Consequently attacker can add several domains to his pages. Once being added by the attacker, their real owners cannot use them any more to point to their pages.

Steps to reproduce

  1. Create a new project
  2. Goto pages' setting of the project
  3. Add new domain, for example: example.com
  4. From now, the domain example.com cannot be added anymore (by its real owner) to any other page

Impact

Attacker can preserve any domains for his pages. Consequently attacker can prevent the real owners of the domains from using them for their gitlab pages.

What is the current bug behavior?

Customized gitlab pages' domain can be used before verifying the owner

What is the expected correct behavior?

Should be verify the domain's owner before using

Output of checks

This bug happens on GitLab.com

Impact

Attacker can preserve any domains for his pages. Consequently attacker can prevent the real owners of the domains from using them for their gitlab pages.

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 domain was stored and reserved for the project before any ownership check (such as a DNS TXT record or file) was performed.

Impact

An attacker could reserve arbitrary domains for their pages and prevent the real owners from using those domains for their GitLab pages.

What the attacker needed

A GitLab account; ability to create a project

How it was found

  1. Create a new project.
  2. Open the pages settings of the project.
  3. Add a new custom domain.
  4. Observe that the domain can no longer be added by anyone else, including its real owner.

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.

GitLab Pages lets people host a website under their own web address (domain). Normally a service should check that you actually control a domain before letting you attach it. Here it did not, so anyone could grab someone else's domain name in the system and stop the real owner from using it there.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.