Skip to content
Access control Disclosed report Intermediate

Unauthorized Modification of Child Items in Issues by Guest Users in GitLab

A Guest user in GitLab could modify Child Items (tasks) of issues created by users with higher access levels, adding or removing them without permission. This allowed unauthorised changes to issue management, potentially causing confusion or data loss.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 months
  • Disclosed after 3 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 #2950433 by 0xhadiworld on 2025-01-20, assigned to @ngeorge1:

Report | Attachments | How To Reproduce

Report

Description

In GitLab, when creating a project, users can invite others with varying access levels, the lowest being Guest. Within the project, there is a section called "Issues" where users can add issues. Each issue contains a subsection called "Child Items," which allows users to add tasks to the issue. Guests can only modify the Child Items related to issues they have created themselves.

However, there exists a vulnerability wherein a Guest user can manipulate Child Items of issues created by users with higher access levels. This means that a Guest can add or remove Child Items from issues that they do not own, leading to unauthorized modifications and potential data integrity issues.

Steps to Reproduce

  1. Log in to GitLab and create a new project.
  2. Invite a user Guest access.
  3. Have the higher access user create a new issue within the project.
  4. Capture the requests in Burp Suite.
  5. Now add a child item to the issue and send the related request to the Repeater tab.
  6. Then, similar to the previous step, remove a child item and send the related request to the Repeater.
  7. Now send the saved requests in the Repeater using the cookie and x-csrf-token of the guest user, and you will see that this user performs these actions without having sufficient permissions.

**Note:**To remove a child item, you will need the ID associated with the work item. This ID can be captured by refreshing the page and monitoring the requests made by the guest user. Below is an example of a request that includes the necessary information:

HTTP
POST /api/graphql HTTP/2  
Host: gitlab.com  
Cookie: [Guest User Cookie]  
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0  
Accept: */*  
Accept-Language: en-US,en;q=0.5  
Accept-Encoding: gzip, deflate, br  
Referer: https://gitlab.com/nowalker7161/bughunter1-project/-/issues/29  
Content-Type: application/json  
X-Csrf-Token: [Guest User Csrf]  
X-Gitlab-Version: 17.9.0-pre  
X-Gitlab-Feature-Category: team_planning  
Content-Length: 5129  
Origin: https://gitlab.com

{"operationName":"workItemUpdate","variables":{"input":{"id":"gid://gitlab/WorkItem/{id}","hierarchyWidget":{"parentId":null}}},"query":"mutation workItemUpdate($input: WorkItemUpdateInput!) {...}"}  

POC VIDEO

gitlab-poc-2.mp4 From the original on GitLab

Recommendations

  • Implement stricter access controls on Child Items to ensure that only users with appropriate permissions can modify them.
  • Review the permission model for issues and their associated Child Items to prevent unauthorized access.

Impact

This vulnerability allows Guest users to interfere with issue management by modifying Child Items of higher-level users issues. This could lead to confusion, unintentional data loss, or the introduction of unauthorized tasks, thereby affecting project integrity and workflow.

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 missing or incorrect permission checks on the GraphQL mutation that updates work item hierarchy, allowing a Guest to modify Child Items of issues they do not own.

Impact

A Guest user could add or remove Child Items on issues created by higher-level users, potentially causing confusion, data loss, or unauthorised tasks, affecting project integrity and workflow.

What the attacker needed

A GitLab project; a Guest user account; a higher-access user creates an issue; ability to capture and modify requests

The fix

Stricter access controls should be implemented on Child Items to ensure only users with appropriate permissions can modify them.

How it was found

  1. Log in to GitLab and create a new project.
  2. Invite a user with Guest access.
  3. Have a higher-access user create a new issue within the project.
  4. Capture the requests in Burp Suite.
  5. Add a child item to the issue and send the related request to the Repeater tab.
  6. Remove a child item and send the related request to the Repeater.

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, a Guest is a user with very limited permissions. They should only be able to change tasks (Child Items) on issues they created themselves. This report shows they could also change tasks on issues created by others, which they should not be able to do.

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.