A user without proper permission is capable of viewing system notes related to a task
A Guest user with a custom read-only member role could view system notes (activity history) on a task, which the documentation says requires at least the Reporter role. This allowed a user with lower privileges to see information they should not have access to.
GitLab
Originally disclosed on GitLab
- Fixed in 4 months
- Disclosed after 4 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 #1925363 by ricardobrito on 2023-03-30, assigned to GitLab Team:
Report | Attachments | How To Reproduce
Report
Hi Gitlab team,
Summary
In Gitlab 15.10, the following feature was introduced:
View system notes and add comments on tasks.
When I look at the documentation it says the following:

You must have at least reporter role in order to view the task system notes.
However, I found that a Guest user with read permission is capable of viewing this information (Guest ranks below reporter). A guest user with read permission shouldn't be able to view this information, and if this is intended there should be a DOCUMENTATION UPDATE (THIS IS IN SCOPE HACKERONE TRIAGER) that specifically states this.
Also, a guest user with reading permissions still is not supposed to see everything in the project (No settings, No clone button, etc...). So because he has read permission doesn't mean he is supposed to read system notes assigned to a task (some context for the hackerone triager who may not be aware of this).
Technical Details
In order to reproduce this, we need to create a group, then inside the group create a project and invite a user with guest role.
Then, we will use the following API call to create a member role with reading permissions:
POST request to https://www.gitlab.com/api/v4/groups/:id/member_roles:
{
"base_access_level": "10",
"read_code": true
}
The base access level 10 means read only, lowest permission.
Now the response should return an ID, which we keep track of for the next request:
PUT request to https://www.gitlab.com/v4/projects/:id/members/:guest_user_id, where id is the project id and guest_id is the id of the user who was invited as a guest in the first step, the payload is the following:
{
"member_role_id": "78",
"access_level": 10
}
In this case 78 is the ID of the member role created above.
The above request will give the Guest user reading permissions.
Now as the project owner create an issue in the project, inside which you create a task as the following:

Still as the project owner, add some labels and make some changes in the task in order to create an Activity timeline.
Now as the Guest user, go to the task page and you will see the whole activity history with the labels assigned (which according to the documentation should only be visible to users with at least the reporter role:

If this is intended behavior, then there should be a DOCUMENTATION UPDATE to include the case of this type of Guest user. Because if a project owner does not know this and he goes by the documentation's logic, he will think that a user would need at least reporter role (which excludes any kind of GUEST role) and when he gives a member role with read permissions to a guest user, he might be mislead into thinking that the user won't be able to view this information.
Impact
A user without proper permissions is capable of viewing viewing system notes related to a task
Impact
A user without proper permissions is capable of viewing viewing system notes related to a task
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
- Screenshot_2023-03-30_at_9.21.59_PM.png
- Screenshot_2023-03-30_at_9.32.56_PM.png
- Screenshot_2023-03-30_at_9.36.33_PM.png
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 permission check for viewing system notes on tasks only considered the base access level (Guest) and not the custom member role's read permissions, or the check was missing for users with read_code permission.
What the attacker needed
GitLab 15.10; a Guest user account; a custom member role with read_code permission; project owner access to create tasks and assign roles
How it was found
- Create a group and a project inside it, and invite a user with the Guest role.
- Create a member role with read_code permission using the API.
- Assign that member role to the Guest user via the API.
- As project owner, create an issue and a task inside it, and add labels and changes to generate activity.
- Log in as the Guest user and visit the task page to see the full activity history.
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, users have roles like Guest, Reporter, Developer, etc., each with different permissions. The documentation says only users with Reporter role or higher should see the activity history (system notes) on a task. However, a Guest user with a special read-only role could still see that history, which is a permission mistake.
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.