Skip to content
Info disclosure Disclosed report Beginner

Group Search API for `Users` scope lists all the members from private projects/subgroups

The group search API for the users scope returned members of private projects and subgroups to any user, even those without access. An attacker could enumerate private project members by querying a public group's search endpoint.

GitLab

Originally disclosed on GitLab

  • Fixed in 14 months
  • Disclosed after 14 months

HackerOne report #641896 by ashish_r_padelkar on 2019-07-12, assigned to akelly:

Summary

Hello,

It is possible for anyone to get list of private project members if they are in any public group. The group search api for users scope retrieves all the members from the private group, private sub group etc.

Steps to reproduce

  1. Create a public group
  2. Create a private project/sub group inside it and have some unique members added here which are not added at group level.
  3. Login as non member of the group and run the below API
https://gitlab.com/api/v4/groups/<Group_ID>/search?scope=users&search=  
  1. This will list the members from the private group too!

What is the current bug behavior?

Retrieves all the members in group including the members from private projects!

What is the expected correct behavior?

Only public group/project members should be listed when user doesnt have access to private projects or sub groups

Output of checks

This bug happens on GitLab.com and might be on omnibus installations too!

Regards,
Ashish

Impact

Group Search API for Users scope lists all the members from private projects/subgroups

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 group search API did not filter results based on the requester's access to private projects and subgroups within the group.

What the attacker needed

A public group exists; a private project or subgroup with members; no membership in the group required

The fix

The search API should filter results to only include members of public projects and subgroups that the requester is allowed to see.

How it was found

  1. Create a public group.
  2. Create a private project or subgroup inside it and add unique members not present at group level.
  3. Log in as a non-member of the group and call the group search API with scope users.
  4. Observe that members from the private project are listed.

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 public group on GitLab can contain private projects. The search feature for finding users in a group was not checking whether the person searching was allowed to see those private projects. So anyone could see the names of people in private projects just by searching the public group.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.