Skip to content
Access control Disclosed report Beginner

Unauthorized - A "planner" role can "View code review analytics" at Gitlab Private Projects (which is contrary to written docs/permissions)

A user with the 'planner' role could view code review analytics on a private project, which the docs say requires 'reporter' or higher.

GitLab

Originally disclosed on GitLab

  • Fixed in 51 days
  • Disclosed after 51 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 #2921111 by weasterhacker on 2025-01-03, assigned to @ngeorge1:

Report | Attachments | How To Reproduce

Report

Unauthorized - A "planner" role can "View code review analytics" at Gitlab Private Projects (which is contrary to written docs/permissions)

Hi team ,

According to Gitlab permission and docs -View code review analytics required "reporter role" or higher role .

docs - https://docs.gitlab.com/ee/user/analytics/code_review_analytics.html

pemission matrix - https://docs.gitlab.com/ee/user/permissions.html

Screenshot_20250103_173243_Chrome.jpg
Screenshot_20250103_173243_Chrome.jpg From the original on GitLab
Screenshot_20250103_173558_Chrome.jpg
Screenshot_20250103_173558_Chrome.jpg

But here Attacker with only "planner" role was able to "View code review analytics" at Victim user Private Project.

Steps -

As Victim User :

  1. Create a Group and Project ( private with ultimate plan )

  2. create a merge request or issue on project

  3. now invite attacker with "planner" role at group/project

As Attacker -

  1. Create a A account at https://gitlab.com

  2. now navigate - https://gitlab.com/group/project/-/analytics/code_reviews

see attacker with only "planner" was able to View code review analytics at Victim user private project which only meant to access "reporter or higher roles .

Impact -

A user with planner role was able to View code review analytics which is meant to access "reporter or higher roles at gitlab private projects .

Impact

A user with planner role was able to View code review analytics which is meant to access "reporter or higher roles at gitlab private projects .

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 a missing or incorrect permission check in the code review analytics feature, allowing users with the 'planner' role to access it despite documentation stating it requires 'reporter' or higher.

Impact

A planner-role user could view code review analytics on private projects, which should require reporter or higher.

What the attacker needed

Victim has private project with ultimate plan; attacker has planner role on project

How it was found

  1. As victim, create a private group and project with ultimate plan.
  2. Create a merge request or issue on the project.
  3. Invite the attacker with the 'planner' role at the group or project.
  4. As attacker, log in and navigate to the code review analytics page of the project.
  5. Observe that the analytics are visible despite the planner role.

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, users have roles like 'planner' and 'reporter' that control what they can see. The documentation says only 'reporter' and above should see code review analytics, but a 'planner' could see them too. This means someone with lower permissions could access information they shouldn't.

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.