Disclosure of Labels and Milestones in Public Project With 'Only Project Members' Enabled for Issues
A public GitLab project had the 'Only Project Members' setting enabled for issues, but non-members could still directly access the milestones and labels pages. This allowed unauthorised users to view label and milestone names.
GitLab
Originally disclosed on GitLab
- Fixed in 13 months
- Disclosed after 13 months
HackerOne report #505892 by rafiem on 2019-03-07, assigned to hackerjuan:
Hi Team,
Summary
I have found information disclosure of labels and milestones in public project.This disclosure can be happened when 'Only Project Members' feature enabled for Issues.That feature mean that only project members can view/access the information regarding issue like milestone and label.But, in this case non-project members can access the milestones and labels.
Description
An information disclosure is the intentional or unintentional disclosure of information to an actor that is not explicitly authorized to have access to that information.In this case,non project members have access to labels and milestones despite that 'Only Project Members' feature enabled for issues in the public project.
Steps To Reproduce
1.)User A make public project
2.)User A then enabled 'Only Project Members' feature for issues on : https://gitlab.com/[user]/[project name]/edit
3.)Milestones and lables page can still be accessed by non-project members directly on : https://gitlab.com/[user]/[project name]/milestones and https://gitlab.com/[user]/[project name]/labels
4.)The label and milestone name also disclosed on merge request
<>PoC video attached
Impact
Disclosing Label and Milestone to non-project member having that project enabled 'Only Project Members' for Issues.
Best Regards,
@rafiem
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
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 access control check for the 'Only Project Members' setting was applied to issue pages but not to the labels and milestones pages.
Impact
Non-project members could view label and milestone names that were intended to be restricted to project members.
What the attacker needed
Public project; 'Only Project Members' enabled for issues; attacker is not a project member
How it was found
- Create a public project.
- Enable 'Only Project Members' for issues in the project settings.
- As a non-member, visit the milestones and labels pages directly.
- Observe that label and milestone names are also shown on merge requests.
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 project can be public, but you can restrict issue details to members only. However, the pages listing labels and milestones did not check this restriction, so anyone could see them. This is an information leak: outsiders learn internal names that were meant to be private.
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.