Skip to content
Info disclosure Disclosed report Beginner

gitlab-com/gl-infra/tamland internal-only usage forecasts are accessible to any GitLab user

The tamland forecasting tool's GitLab Pages site, intended for internal GitLab.com group members only, was accessible to any GitLab.com user via job artifact URLs. An attacker could view internal usage forecasts for services like CI, Patroni, and Redis.

GitLab

Originally disclosed on GitLab

  • Fixed in 5 days
  • Disclosed after 5 days

HackerOne report #1517863 by jimeno on 2022-03-21, assigned to @rshambhuni:

Report | Attachments | How To Reproduce

Report

Note for the triager: Please, read the summary carefully. Even though this isn't directly in scope, I believe this is something GitLab security team should review. I'm happy to self-close this if they consider this to be working as intended. Given this submission isn't directly in scope, I'm not expecting to receive a bounty here.

Summary

Hi team - This report is a bit different. By following your Issue Tracker I noticed you recently accepted https://gitlab.com/gitlab-org/gitlab/-/issues/350246 - hackerone.com/reports/*1448490, which is related to an employee exposing their Personal Access Token on the Internet. I decided to look for accidental corporate data exposures on your GitLab.com-related repositories.

As part of my research, I discovered your tool named tamland (which by the way is pretty interesting!). Per tamland docs:

Tamland is a forecaster. Weekly report is hosted on GitLab pages: https://gitlab-com.gitlab.io/gl-infra/tamland/intro.html. CI runs from mirror at https://ops.gitlab.net/gitlab-com/gl-infra/tamland.

It is built on ops.gitlab.net due to the required build infra access (kaniko I believe!) but hosted on gitlab.io (Pages instance of gitlab.com) since ops.gitlab.net doesn't have Pages enabled. Source: CI config of the project.

This is not ideal - it's a hack to get break pages generation and hosting between two gitlab instances.
ops.gitlab.net has access to runners capable of generating the artifacts, but it doesn't have a pages server.
gitlab.com has pages, but no access to the runners.
When running on gitlab.com, will fetch pages artifact from ops.gitlab.net and publish it on gitlab.com pages instance.

Pages site is generated on ops.gitlab.net

One can easily verify they aren't supposed to view the information in the GitLab pages for this tool by trying to access the link pointed by the project description itself.

The forecast is published on GitLab Pages and the latest report can be found here: https://gitlab-com.gitlab.io/gl-infra/tamland/intro.html.

As you can see, the page isn't intended to be accessible to non gitlab-com Group users.

access.mov From the original on GitLab

However, by browsing through the issues, I noticed there are links posted by the GitLab bot pointing to the CI pipeline results which of course contain the resulting Artifacts and, therefore, leads to access to the GitLab pages instance and the GitLab internal-only components usage forecasts for services such as CI, Patroni, Redis, etc. I won't assess the impact because I don't have enough background knowledge on how critical these metrics are for the GitLab business. Therefore I set the severity to None.

Steps to reproduce
  1. Sign in to your GitLab.com account.
  2. Browse to https://gitlab.com/gitlab-com/gl-infra/tamland/-/jobs
  3. Click one of the Pages jobs and check the build log. For example: https://gitlab.com/gitlab-com/gl-infra/tamland/-/jobs/2214125045
  4. Note the Job ID. In the above case, it is 2214125045
  5. Browse to this URL replacing the [JOB-ID] string with your Job ID. Example: https://gitlab-com.gitlab.io/-/gl-infra/tamland/-/jobs/2214125045/artifacts/public/redis.html
  6. Notice the Redis usage forecasts being disclosed.
Impact

Access to current usage reports and forecasts would be a valuable information for GitLab competitors.

Examples

N/A

What is the current bug behavior?

Access to tamland forecast results is possible for non gitlab-com Group members.

What is the expected correct behavior?

Access to tamland forecast results is only possible for gitlab-com Group members.

Relevant logs and/or screenshots

N/A

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

N/A

Impact

Access to current usage reports and forecasts would be a valuable information for GitLab competitors.

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

Impact

An attacker could access internal usage reports and forecasts, which would be valuable information for GitLab competitors.

What the attacker needed

A GitLab.com account

How it was found

  1. Sign in to a GitLab.com account.
  2. Browse to the tamland project's jobs page.
  3. Click a Pages job and note its job ID.
  4. Construct a URL using the job ID to access the artifacts.
  5. View the disclosed usage forecasts.

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 is a feature that hosts static websites from a repository. The tamland project's Pages site was meant to be private to GitLab employees, but anyone with a GitLab.com account could view it by guessing or finding a job artifact link. This exposed internal forecasts about how much GitLab uses certain services.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.