Skip to content
Access control Disclosed report Intermediate

Sensitive information disclosure via value stream analytics controller (leaks undisclosed security vulnerabilities in Gitlab)

The value stream analytics feature of GitLab did not enforce access control, allowing an attacker to view confidential issues and merge requests from private projects. This could expose undisclosed security vulnerabilities.

GitLab

Originally disclosed on GitLab

  • Fixed in 25 days
  • Disclosed after 25 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 #2012073 by pwnie on 2023-06-04, assigned to @ngeorge1:

Report | Attachments | How To Reproduce

Report

Summary

Sensitive information can be disclosed via the value stream analytics feature of Gitlab. Some examples are viewing a private repository's merge requests and confidential issues.

Steps to reproduce (Example attacks)

Viewing confidential issues

  1. Go to https://gitlab.com/gitlab-org/gitlab/-/value_stream_analytics?created_after=2023-05-06&created_before=2023-06-04&value_stream_id=3160&label_name[]=HackerOne&stage_id=12787&sort=end_event&direction=desc&page=1
  2. You can view undisclosed security issues for Gitlab

Viewing merge requests of a private repository

  1. Create a project and change the repository visibility to project members only
  2. Create a new branch and a new merge request
  3. Close that merge request
  4. Go to the value stream analytics page on a different account
  5. Create a new value stream with any name with the following settings:
Screenshot_2023-06-03_at_7.58.49_PM.png
Screenshot_2023-06-03_at_7.58.49_PM.png From the original on GitLab
  1. Wait for the merge request to appear in the new value stream and stage you just created
Impact

Information disclosure of critical nature, for example undisclosed security vulnerabilities. Since the information disclosed pertains to different components, I am marking the scope as changed. For example I can use this bug to disclose every other vulnerability in Gitlab, and escalate from there.

What is the current bug behavior?

Value stream analytics controllers don't implement access control

What is the expected correct behavior?

Proper access control

Output of checks

This bug happens on GitLab.com

Impact

Information disclosure of critical nature, for example undisclosed security vulnerabilities. Since the information disclosed pertains to different components, I am marking the scope as changed. For example I can use this bug to disclose every other vulnerability in Gitlab, and escalate from there.

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 view confidential issues and merge requests from private projects, potentially disclosing undisclosed security vulnerabilities.

What the attacker needed

A GitLab account; access to value stream analytics

The fix

Proper access control should be implemented in the value stream analytics controllers.

How it was found

  1. Create a project and set repository visibility to project members only.
  2. Create a new branch and a new merge request.
  3. Close that merge request.
  4. Go to the value stream analytics page on a different account.
  5. Create a new value stream with any name and specific settings.
  6. Wait for the merge request to appear in the new value stream and stage.

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.

Value stream analytics is a GitLab feature that shows how work flows through stages. The bug meant it didn't check if you were allowed to see the data, so anyone could see private information like secret issues or merge requests.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.