Skip to content
Access control Disclosed report Beginner

Removing a user from a private group doesn't remove him from group's project, if his project's role was changed

When a user's role in individual projects of a private group was changed, removing them from the group did not revoke their project-level access. A removed user could still view all resources of those projects.

rpadovani Follow

Originally disclosed on HackerOne

Medium 6.3 View original
  • Triaged in 11 days
  • Fixed in 13 months
  • Paid in 13 months
  • Disclosed after 14 months

Summary by the researcher

I published a summary with some personal notes on my blog: https://rpadovani.com/gitlab-responsible-disclosure

The report

Summary: (a) rogue user is added to a private group with dozen of projects (b) The role in some projects is changed for the rogue user (c) rogue is fired, and removed from the group: he still has access to projects where his role was changed

Description:

the (b) can happen for a lot of different reasons:

  • rogue is added as master - knowing this vulnerability, he decreases his privileges to stay in some projects (this is the only malicious one)
  • rogue is added as developer, but for some projects he becomes responsible, and is promoted to master
  • rogue is added as reporter, and then he is promoted for a project, and so on.

When an admin removes an user from a private group, there is no indication that the user still has access to private projects, if role was changed.

I suggest one of these solutions:

  • add an alert, showing which project he will still have access
  • he is removed from every project

Steps To Reproduce:

  1. admin creates superSecretGroup
  2. admin creates bunch of projects
  3. admin adds myFirstCTO as master in the group
  4. myFirstCTO is bad and he is fired
  5. myFirstCTO changes his role in every project
  6. admin removes myFirstCTO from group's member
  7. myFirstCTO has still access to everything. As long as admin doesn' t go to the single project members page, he will have no idea

Step 3-5 can happen for a lot of different reasons, also not malicious. I found out because I was removed from a group as "developer", but I was master of some projects and still had access to them

Impact

A user can still see all resources of a project of a secret group after he has been removed from the group

The original report as published on HackerOne, by rpadovani. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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, group membership removal did not revoke or reconcile project-level role assignments that had been set separately.

What the attacker needed

A private group with projects; user's project role changed separately; admin removes user from group

The fix

The report suggests either warning the admin which projects the user will still access or removing the user from every project; the text does not say it was fixed.

How it was found

  1. An admin creates a private group and several projects.
  2. The admin adds a user as master in the group.
  3. The user changes their role in every project.
  4. The admin removes the user from the group's members.
  5. The user still has access to everything, and the admin sees no warning unless visiting each project's members page.

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.

A private group holds projects, and people can be given a role in the group or in a single project. If someone's project role was changed, removing them from the group did not take away that project access, so they could still see private project data.

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 by rpadovani

View all

6 more disclosed reports, best first.

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.