Skip to content
Access control Disclosed report Beginner

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]

  1. To reproduce this bug, you need to create a gitlab account with the Ultimate Saas Plan Trial feature
  2. Go to https://gitlab.com and select Get Free Trial
  3. Complete registration and at the end of the form you are asked to create a group and project.
  4. Invite the attacker as a guest in your project.
  5. Go to your group -> select your project -> in the sidebar select Settings -> Analytics -> expand. You will notice that Custom dashboard projects is not yet setup.
  6. The attacker will set these features.

[Attacker]

  1. Open https://gitlab.com and log in to the attacker's account
  2. Go to the victim's group -> then select victim project
  3. Add /-/settings/analytics to the end of the url and enter
  4. You will be directed to the Custom dashboard projects page.
Screenshot_from_2024-01-15_10-38-12.png
Screenshot_from_2024-01-15_10-38-12.png From the original on GitLab
  1. Select the victim project in the combobox and select save changes. The attacker succeeded in changing the Custom dashboard projects setting 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:

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.

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.

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.