Skip to content
Subdomain takeover Disclosed report Beginner

Takeover of `bb-vuln-stats-gitlab-com-gl-security-security-re-c25977bf1ada94.gitlab.io` GitLab Page

A GitLab Pages site referenced in the GitLab Handbook was left unclaimed, allowing an attacker to take it over and host their own content. The attacker could then serve a fake login page or malware to GitLab employees.

GitLab

Originally disclosed on GitLab

  • Fixed in 2 months
  • Disclosed after 2 months

⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.

HackerOne report #2759470 by psycho_012 on 2024-10-04, assigned to GitLab Team:

Report | Attachments | How To Reproduce

Report

Summary:
I found a vulnerable GitLab page at https://bb-vuln-stats-gitlab-com-gl-security-security-re-c25977bf1ada94.gitlab.io/, which is referenced for Bug Bounty statistics in the GitLab Handbook,under the "Team Member Upskilling" section. I was able to take over the page and host a proof of concept (PoC).

Description:
While reviewing the GitLab Handbook, I found references to the GitLab page used for displaying Bug Bounty statistics by gitlab. The page is linked in the following resources:

  • Vulnerable Page: https://bb-vuln-stats-gitlab-com-gl-security-security-re-c25977bf1ada94.gitlab.io/

  • References in Handbook:

    • https://handbook.gitlab.com/handbook/security/product-security/product-security-engineering/runbooks/team-member-upskilling/#:~:text=identify%20a%20class%20of%20recurring%20issues%20from%20Bug%20Bounty%20Stats

      {{media:0}}
      
    • https://gitlab.com/gitlab-com/content-sites/handbook/-/blob/main/content/handbook/security/product-security/product-security-engineering/runbooks/team-member-upskilling.md#:~:text=identify%20a%20class%20of%20recurring%20issues%20from%20Bug%20Bounty%20Stats

      image.png
      image.png From the original on GitLab

I was able to take over this GitLab page and uploaded a proof of concept (PoC) file demonstrating the successful takeover.

Recommendation:
Secure the vulnerable gitlab page https://bb-vuln-stats-gitlab-com-gl-security-security-re-c25977bf1ada94.gitlab.io/ by reclaiming it to prevent any unauthorized takeover.

Impact

If an attacker successfully takes over the bb-vuln-stats-gitlab-com-gl-security-security-re-c25977bf1ada94.gitlab.io page, they would gain the ability to perform the following actions:

  • In GitLab, when internal links are shared publicly, they usually redirect to the GitLab login page or Google login page. An attacker can take over this Gitlab page and serve their own login page through this Gitlab Page, potentially compromising GitLab employee accounts.
  • Inject malicious content that could be distributed to internal users.
  • Modifying important resources linked from the page.
  • An attacker can also serve stored Malware through this Gitlab Page, posing a threat to GitLab employees.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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 GitLab Pages project that owned the subdomain was deleted or renamed without removing the DNS entry or the links pointing to it, leaving the subdomain unclaimed.

Impact

An attacker could host a fake login page to phish GitLab employees, inject malicious content, or serve malware, potentially compromising employee accounts.

What the attacker needed

The GitLab Pages project is unclaimed; The page is linked from a trusted site

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 a website is hosted on a service like GitLab Pages, it is tied to a specific project. If that project is deleted or renamed but the web address is still linked from elsewhere, someone else can create a project with the same name and claim that address. Here, the address was still linked in GitLab's public handbook, so an attacker could put their own page there and trick employees.

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.