Skip to content
Access control Disclosed report Beginner

View Access to Managed License of CI/CD settings of Project(Privilege escalation)

The managed licenses API endpoint did not enforce project permissions, allowing any authenticated user to view the approved and blacklisted licenses of a project. An attacker could access this information even when the project was set to restrict access to members only.

GitLab

Originally disclosed on GitLab

  • Fixed in 6.5 years
  • Disclosed after 6.5 years

HackerOne report #439726 by vijay_kumar1110 on 2018-11-13:

Summary & Description In Project Settings -- > CI/CD -- > manage licenses You can manage licenses. Only Few role users in the project have ability to view this section. Below mentioned API request discloses managed licences of the project. API request : https://gitlab.com/api/v4/projects/[Project_ID]/managed_licenses In order to reproduce the issue i tried to restrict most of the section/permissions in internal project but still i was able to access these licenses. In the permission list of project you can view that only developers and higher level users can access this info. Link : https://docs.gitlab.com/ee/user/permissions.html you can search for "View approved/blacklisted licenses " and you will see this information.

##Vulnerable API request : https://gitlab.com/api/v4/projects/[Project_ID]/managed_licenses

##Sample JSON response : [{"id":249,"name":"AGPL-1.0","approval_status":"blacklisted"},{"id":264,"name":"BSD","approval_status":"approved"}]

Steps To Reproduce:

Take 2 different accounts to reproduce this issue. 1.Login from Victim account and create a project. 2.Keep the Project as internal/Public and set "Only project members" for all the sections. 3.Also make the Public pipeline Disabled as permissions doesn't mix up. 4.Now No non member should be able to access managed Licenses. 5.Now login from attacker account and go to the project. 6.Now you will notice that this user doesn't have access to many sections and specially CI/CD settings. 7.Now Run above mentioned API request with valid project_ID. 7.In the JSON response you will be able to access managed licenses.

Supporting Material/References:

Let me know if you require one.

Impact

View Access to Managed License of CI/CD settings of Project(Privilege escalation)

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 API endpoint for managed licenses lacked an authorization check, allowing any authenticated user to access it regardless of project membership or role.

Impact

An attacker could view a project's managed licenses and their approval statuses even when access is restricted to members.

What the attacker needed

Attacker has a valid account; victim has a project with managed licenses; attacker knows the project ID

How it was found

  1. Log in as the victim and create a project.
  2. Set the project visibility to internal or public and restrict all sections to 'Only project members'.
  3. Disable public pipelines.
  4. Log in as the attacker and navigate to the project.
  5. Send an API request to the managed licenses endpoint with the project ID.
  6. Observe that the response contains the managed licenses.

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.

A project on GitLab has settings that control who can see different parts of it. The managed licenses list is supposed to be visible only to project members with certain roles. However, the API that returns this list did not check if the person asking had permission, so anyone logged in could see it.

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.