Skip to content
Access control Disclosed report Beginner

Guests can see Contribution Analytics of group members when they are not members

A guest member of a private project within a private group could view the group's Contribution Analytics page, which shows per-user counts of merge requests and issues. This exposed activity data from group members who were part of other private projects the guest had no access to.

GitLab

Originally disclosed on GitLab

  • Fixed in 16 months
  • Disclosed after 16 months

HackerOne report #446435 by ashish_r_padelkar on 2018-11-17:

Summary: Hello,

As we know, when there is a project inside a group, you can add members at project level without adding them at group level.

When you become member of project, you implicitly become part of the group as i read here https://gitlab.com/gitlab-org/gitlab-ce/issues/39820

However, when Group is private, and if you give user a Guest membership to Private Project inside the private group , they should not see Contribution Analytics of group members at group level!!

Description: Contribution Analytics page should not be visible for guests anyways at it displays all the counts such as merge request , issues etc per user in a group!

Specifically in cases where user having explicit guest access to private project with in a private group, they should not see analytics from group level because they are not a member of the groups!

I understand that you want to give read only access to group to some features but i think analytics should not be visible in my opinion!

Steps To Reproduce:

  1. Create a Private Project under Private group
  2. Now add a Guest at Private Project level . Note that he should have access at group level
  3. When you login as Guest , you can see Contribution Analytics from group and all the analytics such as number of merge request, issues etc from members of the group who may be part of other private projects from the same group where you don't have any access!!

Regards, Ashish

Impact

Guest can see group's contribution analytics

Proposed solution

As per this comment

  1. We keep the sidebar visibility of the feature as before
  2. For the feature endpoint (json format),
  • we throw a 403 if the user doesn't have access to the feature, regardless of showing promotions.
  • we return data with a 200, otherwise
  1. For the feature page,
  • if the user has access to the feature, we show the page just fine
  • if the user doesn't have access, and promotions are off, we throw a 403
  • if the user doesn't have access, and promotions are on, we show a promotional message on the page, not the actual data

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 Contribution Analytics page and its data endpoint did not check whether the user had group-level access, only project-level membership.

Impact

A guest could see group contribution analytics, including activity counts from members of other private projects they could not access.

What the attacker needed

A private group with a private project; guest membership on that project only; victim is a group member with activity

The fix

Proposed fix: endpoint returns 403 without access; page shows promotional message instead of data when promotions are on.

How it was found

  1. Create a private project inside a private group.
  2. Add a user as a Guest at the project level only.
  3. Log in as that guest and open the group's Contribution Analytics page.
  4. Observe analytics for group members, including those in other private projects.

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 can contain projects, and you can give someone a limited 'Guest' role on just one project. That person is not supposed to see group-wide information. However, the group's analytics page, which summarises how many merge requests and issues each member has, was visible to that guest, leaking activity from projects they were not part of.

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.