Pipeline status of related merge request of issue is visible for non members despite settings
A public GitLab project set pipelines to be visible only to project members, but the pipeline status of related merge requests was still shown to non-members on issue pages. An attacker could view this restricted pipeline status without being a member.
GitLab
Originally disclosed on GitLab
- Fixed in 13 months
- Disclosed after 13 months
HackerOne report #587945 by ashish_r_padelkar on 2019-05-22, assigned to jritchey:
Summary
Hello,
With introduction of https://about.gitlab.com/2019/05/22/gitlab-11-11-released/#more-details-for-related-merge-requests , It is possible to see the pipeline status of merge requests associated with issues when we have below settings for the public projects

Steps to reproduce
-
As an owner of public projects, set the settings shown in above screen shot. I.e set pipelines as
Only Project Members -
Now any authenticated/ non member can navigate to an issue where there are related merge requests exists.
-
You should see the pipeline status of such merge requests despite the
Only Project Memberssettings!

What is the current bug behavior?
Pipeline status of related merge requests in issues are visible!
What is the expected correct behavior?
Pipeline status should not be visible if the settings are Only Project Members in public projects
Output of checks
This bug happens on GitLab.com and might be on omnibus installations too!
Regards,
Ashish
Impact
Pipeline status of related merge requests are visible for non members
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 issue page did not check the project's pipeline visibility setting when displaying the pipeline status of related merge requests.
Impact
Non-members could see the pipeline status of related merge requests, which should have been restricted to project members only.
What the attacker needed
Public project; pipelines set to 'Only Project Members'; issue with related merge requests
How it was found
- As an owner of a public project, set pipelines visibility to 'Only Project Members'.
- As any authenticated or non-member user, navigate to an issue that has related merge requests.
- Observe that the pipeline status of those merge requests is visible despite the setting.
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 some details like pipeline status can be restricted to members only. This report shows that even with that restriction, the pipeline status of merge requests linked to an issue was still visible to anyone. That means a non-member could see information that was supposed 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.