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
- Create a new project
- Goto pages' setting of the project
- Add new domain, for example:
example.com - From now, the domain
example.comcannot 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.
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
- Create a new project.
- Open the pages settings of the project.
- Add a new custom domain.
- 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.