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
- Create an environment: create a public project, disable "Public pipelines" (Settings -> CI/CD -> General pipelines -> Public pipelines), grant Guest permissions to some account.
- 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. - 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:
- 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.
- Guest shouldn't have an access to pipeline details via
https://gitlab.com/:owner/:project/pipelines/:pipeline_idweb 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.
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.