Endpoint for auto-completing Assignee discloses the members of private groups
The autocomplete endpoint for project assignees returned the members of a private group invited to the project, while the project members API correctly hid them. An attacker could learn the membership of a private group.
GitLab
Originally disclosed on GitLab
- Fixed in 2.5 years
- Disclosed after 2.5 years
HackerOne report #627507 by ngalog on 2019-06-24, assigned to estrike:
Summary
I have a project, with id 10257668, and I have invited a private group as a developer to this project. As that group is private, you should not see its membership. However, there is a way to find out project's private membership:
- Correct permission check: https://gitlab.com/api/v4/projects/:project_id/members - does not disclose private group's membership.
- Incorrect permission check: https://gitlab.com/autocomplete/users.json?search=&active=true&project_id=10257668¤t_user=true - discloses the members of private group.
Steps to reproduce:
- Login to gitlab.com.
- Visit this project members page: https://gitlab.com/api/v4/projects/10257668/members. See this project has only one member.
- Visit https://gitlab.com/autocomplete/users.json?search=&active=true&project_id=10257668¤t_user=true. See this project has more than one member, thus disclosing the private membership.
Impact
Disclosure of members in a private group.
Proposal
The autocomplete endpoint should use the permission check from the Project Members API endpoint (https://gitlab.com/api/v4/projects/[project-id]/members).
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 autocomplete endpoint used a weaker permission check than the project members API, so it included members of a private group.
Impact
The membership of a private group could be disclosed.
What the attacker needed
A GitLab account; access to a project with a private group invited
How it was found
- Log in to gitlab.com.
- Open the project members API page and note that the project has only one member.
- Open the autocomplete users endpoint for the same project and see more than one member, revealing the private group's membership.
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 is a team whose member list is meant to be secret. One part of the site checked permissions properly and hid the list, but another part, the auto-complete helper, did not, so it revealed who is in the group.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.