Pending invitations of public groups and public projects are visible to any user
The API endpoints for listing invitations to public groups and projects did not enforce the same access controls as the web interface, allowing any user to see pending invitations. An attacker could retrieve email addresses of invited users who had not yet accepted.
GitLab
Originally disclosed on GitLab
- Fixed in 10 months
- Disclosed after 10 months
HackerOne report #1048259 by ashish_r_padelkar on 2020-12-01, assigned to @rchan-gitlab:
Report | How To Reproduce
Report
Summary
Hello,
It is possible to see pending invitations of any public group or public project by visiting the API endpoint https://gitlab.com/api/v4/groups/<ID>/invitations
https://gitlab.com/api/v4/projects/<ID>/invitations
This info is not visible in UI to guest/non members. the invites can be email Ids too, so this info shouldnt be visible to such users!
Steps to reproduce
- Go to any public group or public project and go the membership page. you only see confirmed members but wont see pending members.
- Now use below endpoints to see the pending members (invited by emails)
https://gitlab.com/api/v4/groups/<ID>/invitations
https://gitlab.com/api/v4/projects/<ID>/invitations
What is the current bug behavior?
Pending invites are visible to any user of public group/project
What is the expected correct behavior?
The pending invites shouldnt be visible to public.
Output of checks
This bug happens on GitLab.com
Regards,
Ashish
Impact
Pending members (including their emails) are visible to users from public group/projects
Proposal
These API endpoints should apply the same authorization policy as the equivalent UI endpoints:
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 API endpoints lacked proper authorization checks, unlike the UI endpoints which correctly restricted access.
Impact
Pending members' email addresses could be disclosed to any user of a public group or project.
What the attacker needed
Public group or project; any user
How it was found
- Go to a public group or project's membership page; only confirmed members are shown.
- Access the invitations API endpoint for that group or project to see pending invitations, including email addresses.
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.
Some parts of a website are meant to be private, like a list of people who have been invited but haven't joined yet. Here, a different way of accessing the same information (an API) forgot to check who was asking, so anyone could see those invitations, including email addresses.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.