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.

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.

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

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!
- Screen_Shot_2024-04-09_at_1.00.48_PM.png
- Screen_Shot_2024-04-09_at_1.05.38_PM.png
- Screenshot_2024-04-09_at_1.18.39_PM.png
How To Reproduce
Please add reproducibility information to this section:
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
- Enable the feature flag okrs_mvc to enable objectives and key results.
- Create an objective in the issues section.
- Create a key result within the objective.
- Log in as a user who is not a member of the public group/project.
- Go to the key result's details page.
- 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.