Skip to content
Access control Disclosed report Beginner

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

Screenshot_2019-05-23_at_00.17.09.png
Screenshot_2019-05-23_at_00.17.09.png From the original on GitLab

Steps to reproduce

  1. As an owner of public projects, set the settings shown in above screen shot. I.e set pipelines as Only Project Members

  2. Now any authenticated/ non member can navigate to an issue where there are related merge requests exists.

  3. You should see the pipeline status of such merge requests despite the Only Project Members settings!

Screenshot_2019-05-23_at_00.20.49.png
Screenshot_2019-05-23_at_00.20.49.png From the original on GitLab

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!

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 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

  1. As an owner of a public project, set pipelines visibility to 'Only Project Members'.
  2. As any authenticated or non-member user, navigate to an issue that has related merge requests.
  3. 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.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.