Guest user can add issues created by them to group iterations
A guest user could add issues they created to group iterations via a GraphQL mutation, even though the UI prevents guests from doing so. This allowed guests to perform an action that should be restricted to higher roles.
GitLab
Originally disclosed on GitLab
- Fixed in 15 months
- Disclosed after 15 months
HackerOne report #926505 by ashish_r_padelkar on 2020-07-17, assigned to @cmaxim:
Summary
Hello,
This bug is about new feature group iterations.
As a project reporter/higher you can add any issue to these iterations using issue details page.

Guest users are not allowed to edit this and can not add issues to iterations. However, using this bug, they can add the issues which are created by themselves to iterations which is otherwise not possible.
Steps to reproduce
- Create a group and project inside it.
- Create Iteration at group level using
https://gitlab.com/groups/<GroupName>/-/iterations/new. - Login as
Guestuser and go to create issue in project . - You will see that you can not add iteration while creating issue and also after creating issue.
- Grab any graphQL request which are running in background and form a below request.
POST /api/graphql HTTP/1.1
Host: gitlab.com
Connection: close
Content-Length: 509
accept: */*
X-CSRF-Token: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
content-type: application/json
Origin: https://gitlab.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://gitlab.com/group_new_1/project_1/-/issues/61
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
Cookie:1
[{"operationName":"updateIssueConfidential","variables":{"projectPath":"group_new_1/project_1","iterationId":"gid://gitlab/Iteration/11","iid":"1"},"query":"mutation updateIssueConfidential($projectPath: ID!, $iid: String!, $iterationId: ID) {\n issueSetIteration(input: {projectPath: $projectPath, iid: $iid, iterationId: $iterationId}) {\n errors\n issue {\n iteration {\n title\n id\n state\n __typename\n }\n __typename\n }\n __typename\n }\n}\n"}]
- In
projectPath, you will have your project path. iterationIdwill be the ID of the iteration you want this issue to add to. (Within same group)iidis the ID of the Current issue that you created.
9 . Send the request and reload the issue. You should see Issue is added to iterations. It will appear in right side bar and also you can see by visiting iteration detail page
What is the current bug behavior?
Guest users are able to add their issues to iterations.
What is the expected correct behavior?
Guest users shouldnt be allowed to add issues to iterations irrespective of who created the issue.
Output of checks
This bug happens on GitLab.com
Regards,
Ashish
Impact
Guest users are able to add their issues to iterations.
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
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 GraphQL mutation for setting an issue's iteration did not properly check the user's role, allowing guests to perform the action.
What the attacker needed
A guest account; a group iteration exists; a project issue created by the guest
How it was found
- Create a group and a project inside it.
- Create an iteration at the group level.
- Log in as a guest user and create an issue in the project.
- Observe that the UI does not allow adding the issue to an iteration.
- Capture a GraphQL request and modify it to set the iterationId and iid.
- Send the request and reload the issue to see it added to the iteration.
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 limited permissions. They are not supposed to add issues to iterations, which are like time-boxed work periods. However, by directly sending a request to the server, they could bypass the restriction and add their own issues to iterations.
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.