Skip to content
Access control Disclosed report Beginner

Banned group member continues to have access to the public projects of a public group with the access level as same as before the ban.

A banned group member retained maintainer access to public projects within the group, while losing access to private projects. An attacker could continue to modify settings and perform maintainer actions on public projects after being banned.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 months
  • Disclosed after 3 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 #1850046 by albatraoz on 2023-01-28, assigned to @rshambhuni:

Report | How To Reproduce

Report

Summary

Recently GitLab introduced a feature to ban a member from a group. This allows a group owner to ban a member from accessing the projects of a group. But due to this vulnerability the member looses access to only private projects & not the public projects for the group. The member continues to have the same access level before they were banned on the public projects of the group from where they were banned.

Steps to reproduce
  1. As user A create a public ultimate/premium gitlab group. (Ultimate/Premium needed for ban feature)
  2. Create two projects in this group. One should be private & another one should be public.
  3. As user A add user B to this public group as a maintainer.
  4. Now login as user B & check those two projects & you'll have maintainer access to both.
  5. Now as user A ban user B from the groups member page.
  6. Now login as user B & check the private project, it will say "Page Not Found" as this member is banned so the access is lost.
  7. Now as user B, check the public project & you'll see that you are able to access this project with maintainer access.

You should be able to change the settings and do all the things that a maintainer can.

Impact

An malicious member would be able to have access to the public projects of a public gitlab group even after being banned from the public group by the owner.

How To Reproduce

Please add reproducibility information to this section:

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

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 ban enforcement only checks private project access and does not revoke permissions on public projects within the group.

Impact

A banned member could still access and modify public projects in the group, retaining maintainer privileges.

What the attacker needed

GitLab Ultimate/Premium; public group; attacker is a group member; attacker has maintainer role

How it was found

  1. As user A, create a public Ultimate/Premium GitLab group.
  2. Create two projects in the group: one private and one public.
  3. Add user B to the group as a maintainer.
  4. Log in as user B and verify maintainer access to both projects.
  5. As user A, ban user B from the group's member page.
  6. Log in as user B: the private project shows 'Page Not Found', but the public project remains accessible with maintainer rights.

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 group owner can ban a member to remove their access. This report shows that after a ban, the member could still access and even maintain public projects in that group, which should not happen.

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 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.