Skip to content
Info disclosure Disclosed report Beginner

Sensitive Information Disclosure via resource_group API Despite Repository and CI/CD Features Being Disabled

A Developer-level user could access CI/CD resource group details via the GitLab API even after the repository and CI/CD features were disabled for the project. This exposed sensitive identifiers such as environment names, branch names, and client identifiers.

GitLab

Originally disclosed on GitLab

  • Fixed in 21 days
  • Disclosed after 21 days

⚠️ 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 #3223993 by iamgk808 on 2025-06-26, assigned to @katwu:

Report | Attachments | How To Reproduce

Report

Summary

A Developer-level user is able to access CI/CD resource group Details via the GitLab API, even when:

  • Once the Repository option is disabled in a project, no one can view the project’s code, branches, merge requests, or CI/CD configuration details.
  • As a result, the .gitlab-ci.yml file is not accessible because it resides within the repository itself.

This leads to information disclosure, as resource_group names often contain sensitive identifiers such as:

  • Internal environment names (prod, uat, internal-staging)
  • Branch names (release-2025, fix-critical-bug)
  • Client/project identifiers (client-bankofamerica, huawei-deploy)
  • Infrastructure or host names (db-replica-1, aws-ap-south-1)
image.png
image.png From the original on GitLab

Despite the repository and CI/CD being turned off, these names remain visible via the API and can be retrieved by users with Developer-level access, who normally shouldn't have access to CI/CD internals in this configuration.

Steps to reproduce

Two users - victim, attacker

Victim steps:

  1. Create a new public group called group-1 & apply GitLab Ultimate trial to it
  2. In the group, create a private project called project-1
  3. In project-1, create a .gitlab-ci.yml file with the below content, a pipeline will run
deploy_prod:  
  stage: deploy  
  script: echo "Deploying"  
  resource_group: $CI_COMMIT_REF_NAME

deploy_client:  
  stage: deploy  
  script: echo "Deploying"  
  resource_group: client-bankofamerica
image.png
image.png From the original on GitLab

\

image.png
image.png From the original on GitLab
  1. Then go to project-1 settings > project permissions & turn off the Repository option & save it\

    image.png
    image.png From the original on GitLab
  2. Now go to the project-1 >members section & invite the attacker user with the Developer role\

    image.png
    image.png From the original on GitLab

Attacker steps:

  1. go to project-1 & note the project id
image.png
image.png From the original on GitLab
  1. In this URL, change the 70445683 - with your project ID

https://gitlab.com/api/v4/projects/70445683/resource_groups

  1. The attacker can see the resource group details like id, key names, process mode, created & updated dates

<redacted>

Impact
  • Information Disclosure: Internal naming patterns, such as branch names, environment names, project structures, client identifiers, and deployment targets, are exposed.
  • Bypassing Intentional Restrictions: The GitLab UI clearly disables Repository and CI/CD features, implying that all CI/CD-related metadata should be hidden, yet this API allows leakage of part of the CI/CD configuration.
Examples
What is the current bug behavior?

Sensitive Information Disclosure via resource_group API Despite Repository and CI/CD Features Being Disabled

What is the expected correct behavior?

When Repository and CI/CD features are disabled:
The resource_group API should be inaccessible

Relevant logs and/or screenshots
Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Impact

  • Information Disclosure: Internal naming patterns, such as branch names, environment names, project structures, client identifiers, and deployment targets, are exposed.
  • Bypassing Intentional Restrictions: The GitLab UI clearly disables Repository and CI/CD features, implying that all CI/CD-related metadata should be hidden, yet this API allows leakage of part of the CI/CD configuration.

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 API endpoint for resource groups does not check whether the repository or CI/CD features are disabled before returning data.

Impact

Internal naming patterns such as branch names, environment names, and client identifiers could be exposed, bypassing the intended restriction that hides CI/CD metadata when features are disabled.

What the attacker needed

GitLab Ultimate trial; attacker has Developer role; repository and CI/CD disabled

The fix

The resource_group API should be made inaccessible when Repository and CI/CD features are disabled.

How it was found

  1. Victim creates a public group and applies GitLab Ultimate trial.
  2. Victim creates a private project in the group.
  3. Victim adds a .gitlab-ci.yml file with resource groups, triggering a pipeline.
  4. Victim disables the Repository option in project permissions.
  5. Victim invites the attacker as a Developer.
  6. Attacker notes the project ID and accesses the resource_groups API endpoint to view details.

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.

In GitLab, a project can have its repository and CI/CD features turned off, which should hide related information. However, the API endpoint for resource groups still returned data to users with Developer access, leaking names that might reveal internal details. This is an information disclosure bug.

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.