Users with the `Guest` role can change `Custom dashboard projects` settings for projects in the victim group
GitLab
Originally disclosed on GitLab
- Fixed in 28 days
- Disclosed after 28 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 #2316435 by them4les_l1r on 2024-01-15, assigned to @kmorrison1:
Report | Attachments | How To Reproduce
Report
Summary:
Based on this documentation. Users with Guest cannot change group and project settings.
I found a bug where users with the Guest role can change the Analytics Dashboards settings for groups and projects.
Step to Reproduce:
[victim]
- To reproduce this bug, you need to create a gitlab account with the
Ultimate Saas Plan Trialfeature - Go to https://gitlab.com and select
Get Free Trial - Complete registration and at the end of the form you are asked to create a group and project.
- Invite the attacker as a guest in your project.
- Go to
your group-> selectyour project-> in the sidebar selectSettings -> Analytics-> expand. You will notice thatCustom dashboard projectsis not yet setup. - The attacker will set these features.
[Attacker]
- Open https://gitlab.com and log in to the attacker's account
- Go to the victim's group -> then select victim project
- Add
/-/settings/analyticsto the end of the url and enter - You will be directed to the
Custom dashboard projectspage.

- Select the victim project in the combobox and select
save changes. The attacker succeeded in changing theCustom dashboard projectssetting on the victim project
Affected endpoints:
POST /group-name/project-name/-/settings/analytics HTTP/2
Host: gitlab.com
_method=patch&authenticity_token={TOKEN}&project%5Banalytics_dashboards_pointer_attributes%5D%5Bid%5D=XXXXXX&project%5Banalytics_dashboards_pointer_attributes%5D%5Btarget_project_id%5D={PROJECT ID}
POC VIDEO:
Impact
Users with the Guest role who do not have access to group and project settings can change Custom dashboard projects settings for projects in the victim group
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
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.
What is known
A medium-severity access control bug in gitlab.com. GitLab made it public on 21 February 2024. Fixed in version 16.10.
About 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.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
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.