Project reporters can add issues to Group epics without having Reporter access at group level
A user with Reporter access to a project but not to the group could add issues to group epics via a GraphQL mutation that lacked a permission check. This allowed them to modify group epics despite not having the required group-level Reporter role.
GitLab
Originally disclosed on GitLab
- Fixed in 2 months
- Disclosed after 2 months
HackerOne report #1635109 by ashish_r_padelkar on 2022-07-12, assigned to @dcouture:
Report | Attachments | How To Reproduce
Report
Summary
Hello,
To add issues to group epics, you need to satisfy 2 pre-requisites as mentioned here https://docs.gitlab.com/ee/user/group/epics/manage_epics.html#add-an-existing-issue-to-an-epic
You must have at least the Reporter role for the epic’s group.
You must be able to edit the issue.
However, it is possible to add issue to group epic without satisfying first condition here. I.e user without reporter access to group but having reporter access to project can add issues to group epic.
This was not possible earlier but now its possible because of graphql mutation projectIssueEpicMutation which is missing permission check on group epic endpoint .
Steps to reproduce
- Go to your group at
https://gitlab.com/groups/<GroupName>/-/epicsand create an epicEPIC_1. - Now create a project inside this group.
- Go inside the project and create an issue at
https://gitlab.com/<GroupName>/<ProjectName>/-/issuesnamedIssue_1. - Add any user with reporter access within this project directly (not in group ) at
https://gitlab.com/<GroupName>/<ProjectName>/-/project_members. - Now this user has reporter access in project but no direct access to group(This only gives them guest access by default).
- Login as above user and go to epic
EPIC_1created in step 1https://gitlab.com/groups/<GroupName>/-/epics. You wont be able to edit this and add any issue here. - Now go to the project issue
Issue_1created at step 3 by admin athttps://gitlab.com/<GroupName>/<ProjectName>/-/issues. - As you have reporter access to this issue, you can edit the issue. Just click on right side bar to edit epic.

- You can successfully add the Group epic
EPIC_1to this issueIssue_1(although you dont have reporter access needed on group).
Now just go to group epic direct EPIC_1 at https://gitlab.com/groups/<GroupName>/-/epics and you will see issue added within this EPIC.
What is the current bug behavior?
Project reporters can add issues to group epic without group reporter access
What is the expected correct behavior?
To add issues to epic, user need reporter access in project as well as group.
Output of checks
This bug happens on GitLab.com
Regards,
Ashish
Impact
Project reporters can add issues to group epic without group reporter access
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.
How it worked
Root cause
Likely the GraphQL mutation `projectIssueEpicMutation` did not verify that the user had Reporter access to the epic's group, only that they could edit the issue.
What the attacker needed
A GitLab.com account; Reporter access to a project; no Reporter access to the group
The fix
The permission check should require Reporter access on the epic's group.
How it was found
- Create an epic in a group.
- Create a project inside that group and create an issue in it.
- Add a user as a Reporter to the project only (not the group).
- Log in as that user and try to edit the epic directly; you cannot.
- Go to the project issue and use the sidebar to add the epic.
- The epic is successfully added to the issue, and the issue appears in the epic.
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, epics are like big goals that can contain multiple issues. Normally, to add an issue to an epic, you need a certain level of permission (Reporter) in the group that owns the epic. This report shows that a user who only had Reporter permission on a project (but not on the group) could still add issues to the group's epic, because a specific feature (a GraphQL mutation) didn't check the group permission properly.
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.