Skip to content
Access control Disclosed report Beginner

Non project member can promote key results to objectives

A non-member of a public project could promote a key result to an objective, which should require at least the Reporter role. This allowed unauthorised modification of project data.

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 #2456186 by ashish_r_padelkar on 2024-04-09, assigned to GitLab Team:

Report | Attachments | How To Reproduce

Report

Summary

Hello,

As per this document https://docs.gitlab.com/ee/user/okrs.html#promote-a-key-result-to-an-objective, You must require at least the Reporter role to promote the key results to Objectives.

Screenshot_2024-04-09_at_1.18.39_PM.png
Screenshot_2024-04-09_at_1.18.39_PM.png From the original on GitLab

However, only guest access is enough at the moment which i think is a permission issue.

Steps to reproduce

1.On your instance enable the feature flag okrs_mvc to enable objectives and key results in rail console. (Follow this to enable feature flags https://docs.gitlab.com/ee/administration/feature_flags.html#how-to-enable-and-disable-features-behind-flags)
2.After enabling, go to /issues and create an objective. you can follow https://docs.gitlab.com/ee/user/okrs.html#create-an-objective to create objective.

Screen_Shot_2024-04-09_at_1.05.38_PM.png
Screen_Shot_2024-04-09_at_1.05.38_PM.png From the original on GitLab

3.Once you create objective, you can create key results within objective in Child Objectives and key results section.

Screen_Shot_2024-04-09_at_1.00.48_PM.png
Screen_Shot_2024-04-09_at_1.00.48_PM.png From the original on GitLab

4.Login as UserB who is not a member of your group/project(public) and Now go to details of Key results https://YourInstance/<GroupName>/<ProjectName>/-/work_items/1.

5.In comment box type /promote_to objective and it will successfully convert key result into objective.

What is the current bug behavior?

As per document, you must need atleast reporter role to promote key results to objectives but non member too can do this

What is the expected correct behavior?

Only reporter role user should be able to promote key results to objectives

Output of checks

Gitlab EE 16.9+

Regards,
Ashish

Impact

Non project member can promote key results to objectives

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 permission check for promoting a key result to an objective was missing or incorrectly allowed users with lower privileges than intended.

What the attacker needed

Feature flag okrs_mvc enabled; public project; attacker has an account

How it was found

  1. Enable the feature flag okrs_mvc to enable objectives and key results.
  2. Create an objective in the issues section.
  3. Create a key result within the objective.
  4. Log in as a user who is not a member of the public group/project.
  5. Go to the key result's details page.
  6. In the comment box, type /promote_to objective to convert the key result into an objective.

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, some actions like promoting a key result to an objective are supposed to need a certain permission level (Reporter). Here, even a user who is not a member of the project could do it, meaning the permission check was missing or too weak.

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.