Skip to content
Access control Disclosed report Beginner

Unauthorised Guests can read pipeline list as well as pipelines themselves in project with "Public pipelines" disabled

GitLab

Originally disclosed on GitLab

  • Fixed in 15 months
  • Disclosed after 15 months

HackerOne report #622074 by nikitastupin on 2019-06-20, assigned to jritchey:

Summary

Hi,

I've found the vulnerability in API which allows Guest to read a pipeline list as well as pipelines themselves in a project with "Public pipelines" disabled. Guest can't do so via web.

Steps to reproduce

  1. Create an environment: create a public project, disable "Public pipelines" (Settings -> CI/CD -> General pipelines -> Public pipelines), grant Guest permissions to some account.
  2. As Guest list pipelines via API $ curl -H "Private-Token: :private_token_of_guest" https://gitlab.com/api/v4/projects/:project_id/pipelines. Note that you can't do so via web.
  3. Copy web link to any pipeline from (2) response. Paste it to a browser with Guest session. You'll see pipeline details.

Impact

Unauthorised Guests can read pipeline list as well as pipelines themselves in project with "Public pipelines" disabled.

Examples

https://gitlab.com/nshackerone/private-project (don't look at the title, it's public project now)

What is the current bug behavior?

Unauthorised Guests can read pipeline list as well as pipelines themselves in project with "Public pipelines" disabled.

What is the expected correct behavior?

We should fix two things:

  1. Guest shouldn't have an access to pipeline list via https://docs.gitlab.com/ee/api/pipelines.html#list-project-pipelines endpoint. Because he can't access pipeline list via web.
  2. Guest shouldn't have an access to pipeline details via https://gitlab.com/:owner/:project/pipelines/:pipeline_id web endpoint. Because he can't access pipeline details via https://docs.gitlab.com/ee/api/pipelines.html#get-a-single-pipeline endpoint.

Output of checks

This bug happens on GitLab.com

Impact

Unauthorised Guests can read pipeline list as well as pipelines themselves in project with "Public pipelines" disabled.

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.

What is known

A medium-severity access control bug in gitlab.com. GitLab made it public on 16 September 2020.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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.