Skip to content
Access control Disclosed report Beginner

Subgroup Member With Reporter Role Can Edit Group Labels

A user with the Reporter role in a subgroup could edit labels belonging to the parent group by directly accessing the label edit URL with the label's ID. This allowed unauthorised modification of label details, affecting data integrity across projects and subgroups that use the label.

GitLab

Originally disclosed on GitLab

  • Fixed in 8 months
  • Disclosed after 8 months

HackerOne report #1818425 by drjgouveia on 2022-12-29, assigned to Ottilia Westerlund:

Report | Attachments | How To Reproduce

Report

Summary

When a user belongs to a subgroup and that subgroup has a project, the user is able to change details of a label (not able to delete it).

Steps to reproduce
  1. On a GitLab instance create a group.
  2. Create a label on the group.
  3. Now create a subgroup on that group.
  4. Create a label on the subgroup.
  5. Create a new user and add it to the subgroup with the "Reporter" role.
  6. Login now as the new user and proceed to go to the project page. Here you'll click on the breadcrumb that is after the group name, which should be the second one (the one in red: ).
  7. Now "Subgroup information" -> "Labels". You should find a page similar to this one:
image.png
image.png From the original on GitLab
  1. As you can see, the label belonging to the group should not give me access to edit it. But, if I get the ID by inspecting the element and getting the data-id parameter value:
image.png
image.png From the original on GitLab
  1. Now we just have to add the /[data-id value]/edit to the URL, which will look something like this: .../groups/bb/inside/-/labels/142/edit. Now you're able to edit everything except deleting.
Impact

This has a big impact on the integrity fo the data, mainly when tickets are related to the labels and those do not correspond or have the original meaning.

What is the current bug behavior?

This is the before using this vulnerability:

image.png
image.png From the original on GitLab
image.png
image.png

This is the after:

image.png
image.png From the original on GitLab
image.png
image.png
What is the expected correct behavior?

To show a 404 error page.

Impact

The impact of this is more of the integrity of the information provided by the labels, to not only this project/subgroup, but all the projects/subgroups that use this label on this 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.

How it worked

Root cause

Likely the application did not properly check the user's permissions when handling the label edit request, allowing a subgroup member to edit a group-level label.

Impact

A user with the Reporter role could modify the details of group-level labels, affecting the integrity of information across all projects and subgroups that use those labels.

What the attacker needed

A GitLab account; membership in a subgroup with Reporter role; knowledge of the label's ID

How it was found

  1. Create a group and a label on it.
  2. Create a subgroup and a label on it.
  3. Add a new user to the subgroup with the Reporter role.
  4. Log in as that user and navigate to the subgroup's labels page.
  5. Inspect the group label to find its data-id value.
  6. Append /[data-id value]/edit to the URL to access the edit page and modify the label.

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, labels help organise issues. A user with a low-privilege role in a subgroup should not be able to change labels that belong to the parent group. However, by guessing or finding the label's ID number and visiting a special edit page, the user could change the label's name and description, which could confuse everyone using that label.

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.