Unauthorized access to private project security dashboard
A user who was previously a maintainer of a private project could still view new security vulnerabilities through their personal security dashboard after their access was reduced to guest. This allowed them to see sensitive information about the project's security issues and internal structure.
Originally disclosed on HackerOne
- Triaged in 30 hours
- Fixed in 2 months
- Paid in 30 hours
- Disclosed after 7 months
Summary
User with guest permissions can't view security dashboard of the private project. However, this is not applied when user permission changes from maintainer to guest.
As a result, if user was previously a maintainer in the project he/she can add the project to their security dashboard and when their access levels decreases to guest, they can still view new security vulnerabilities result found in the project through their security dashboard. New security issues found in the project are reflecting back to the guest user security dashboard.
Steps to reproduce
- User A create a private project and add user B with maintainer access
- User B will add the project in his security dashboard.
- User A reduced the user B access level to guest. Now, user B can't view any old and new security issues in the project directly
- User B access the project new as well as old security issues through his security dashboard and also the specific new files where the issues lies
- Done
Impact
The impact of this vulnerability is actually very high. A malicious user can take advantage of the security issues found and can use it to exploit the owner application. More info will also disclose newly added files, dependencies and new internal structure of the project/application to the unauthorized user.
What is the current bug behavior?
Unauthorized user (guest) can view security dashboard of the private project
What is the expected correct behavior?
Project should be removed from the user security dashboard when his/her permission changes to lower.
Relevant logs and/or screenshots
When permission changes to guest, user can't view the security dashboard directly, they are treated with this message.

But user can access the private project security issues through his own security dashboard.

Output of checks
This bug happens on GitLab.com
NOTE : I'm using one of the example project provided by Gitlab named "yarn-vulnerabilities" for security testing.
If you want to quickly validate my report, please consider using it. https://gitlab.com/gitlab-examples/security/yarn-vulnerabilities.
Thanks, Vaibhav Singh
Impact
Unauthorized access to private project security dashboard which allows a malicious user to exploit the owner application and also disclose application newly added files/dependencies and internal structure.
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 does not remove a project from a user's security dashboard when the user's permission level is reduced, so the dashboard continues to display vulnerability data based on stale access.
Impact
A malicious user could exploit the security issues found and disclose newly added files, dependencies, and internal structure of the project.
What the attacker needed
Attacker must have been a maintainer; attacker's access reduced to guest; attacker added project to security dashboard
How it was found
- User A creates a private project and adds user B as maintainer.
- User B adds the project to their security dashboard.
- User A reduces user B's access to guest.
- User B accesses the project's security issues through their security dashboard.
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 security dashboard shows vulnerabilities found in your projects. Normally, only users with sufficient permissions can see it. Here, a user's permission was lowered, but the dashboard still showed the project's security issues because the project was not removed from their dashboard when their role changed.
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.