Skip to content
Access control Disclosed report Intermediate

Improper Authorization to Control Instance-Type Runners Resulting in Cross-Project Denial of Service

A Maintainer-level user could pause and resume shared instance-type runners through undocumented project-level web endpoints that should only be usable by administrators. This let an attacker disrupt CI pipelines in unrelated projects by making their jobs wait with no available runners.

GitLab

Originally disclosed on GitLab

  • Fixed in 21 days
  • Disclosed after 21 days

⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.

HackerOne report #3253180 by abdelrahman_maged on 2025-07-15, assigned to GitLab Team:

Report | Attachments | How To Reproduce

Report

Summary

(This report builds upon my prior submission (REDACTED), which was previously closed with the comment:
“High privilege users (maintainers, owners) using a bug to sabotage/deface their own projects”

However, I have now confirmed that the issue affects projects I do not own, and therefore impacts GitLab’s shared infrastructure and the CI/CD availability of unrelated users.

By leveraging undocumented project-level web endpoints, I was able to pause and resume instance_type runners that are explicitly restricted to GitLab administrators, as documented in GitLab’s API documentation. This was done using only Maintainer-level access within my project.
To demonstrate cross-project impact, I created a second GitLab account and initialized a project under it. This new project was automatically assigned 112 shared instance-type runners, identical to those in my original account.
Using my first account, I paused one of the runners and observed the total dropped to 111 on the second account's project. I then developed a local tool that rapidly paused and resumed all 112 runners in under 2 seconds to avoid prolonged service disruption.

During this brief pause window, I modified the second project’s code and triggered a CI job. The job immediately entered a pending state, and the number of assigned runners dropped to zero—without any action taken from the second account.
This proves that an attacker with Maintainer access can impact other users' CI pipelines on GitLab.com via unauthorized control over instance_type runners.)

Steps to reproduce

(1- Create GitLab account #1 and initialize a project with default settings (shared runners enabled).)

(2- List assigned runners via /api/v4/projects/{project_id}/runners?per_page=100&page=1 and look page=2 and note shared instance_type runner IDs.)

(3- Create GitLab account #2 and a separate project. Note that it is assigned the same shared runners.)

(4- From account #1, execute the following (unauthorized) requests:

--POST https://gitlab.com/{group}/{project}/-/runners/{runner_id}/pause

POST-pause.jpg
POST-pause.jpg From the original on GitLab
paused-true.jpg
paused-true.jpg

--POST https://gitlab.com/{group}/{project}/-/runners/{runner_id}/resume)

POST-resume.jpg
POST-resume.jpg From the original on GitLab
paused-false.jpg
paused-false.jpg

(5- Observe the runner count changing on account #2 without any interaction from it.)

111_Runners.jpg
111_Runners.jpg From the original on GitLab

(6- During runner downtime, trigger a CI job on account #2’s project.)

(7- The job enters pending state due to lack of available runners.)

zero-runners.jpg
zero-runners.jpg From the original on GitLab
pending.jpg
pending.jpg

Impact

1- Privilege Escalation: Maintainer users can perform admin-only actions over shared runners (instance_type), violating GitLab’s role-based access control model.

2- Cross-Tenant Denial of Service: CI jobs in unrelated user projects are disrupted due to runner unavailability.

3- Infrastructure-Level Risk: Attacker can automate mass pausing of runners across thousands of projects, causing widespread delays.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

How To Reproduce

Please add reproducibility information to this section:

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 project-level runner pause and resume endpoints did not check that the runner was instance-wide and that the caller was an administrator, so any project maintainer could act on shared runners.

Impact

A maintainer could pause shared runners and cause cross-tenant denial of service, leaving unrelated projects' CI jobs pending, and could automate this at scale.

What the attacker needed

An account; Maintainer role on a project; shared runners enabled

How it was found

  1. Create a first account and a project with shared runners enabled.
  2. List the project's assigned runners through the API and note the shared instance-type runner IDs.
  3. Create a second account and project and confirm it has the same shared runners.
  4. From the first account, send pause and resume requests to the project runner endpoints.
  5. Watch the runner count on the second account drop without any action there.
  6. Trigger a CI job on the second project during the pause and see it stay pending.

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.

GitLab runs shared machines called runners that execute the automated build and test jobs (CI) for many projects. The report says a normal project maintainer, who should not have admin powers, could switch these shared runners off for everyone. That means other people's builds would sit waiting until the runners came back.

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.