Skip to content
IDOR Disclosed report Intermediate

IDOR able to add any project runner to the attacker project and manage the runner via POST /api/v4/projects/{projectId}/runners

A user with a custom role of guest plus manage runners could add any project runner in the instance to their own project and then manage it, such as editing or pausing it. This is an IDOR because the runner ID is guessable and the API does not check that the user has permission over the victim's runner.

GitLab

Originally disclosed on GitLab

Critical View original
  • Fixed in 9 days
  • Disclosed after 9 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 #3356284 by iamgk808 on 2025-09-24, assigned to GitLab Team:

Report | Attachments | How To Reproduce

Report

Summary

Hackerone team note:
PR:L - because the custom role is only used in the attacker group, not in the victim group

I found a weird bug where a custom role can add any project runner to an attacker project and control, like edit, pause, etc...

image.png
image.png From the original on GitLab

==The main issue is that the custom role guest+Manage runners can add any project runner in the instance & control it==

simple POC:
victim :

  1. victim creates a private project & adds a runner to it

attacker:

  1. attacker creates an attacker-group-1 & adds ultimate trial to it
  2. attacker creates a custom role guest+Manage runners & adds the attacker-2 with the custom role
  3. attacker creates a attacker-project-1 in the attacker-group-1 & notes the project ID
  4. Log in as attacker-2 & use the below API & where the runner ID is the victim runner ID (it's an incremental value, so it's too guessable & also in the local instance it starts with 1, 2, 3, 4, etc...)
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/9/runners" \  
     --form "runner_id=9"  
  1. Go to the attacker-project-1 > ci/cd settings> runners, where you can manage the victim runner like edit, pause, etc...
Steps to reproduce

two users - victim, attacker-1, attacker-2

Victim steps:

  1. Create a new group called group-1 & apply GitLab Ultimate trial to it
  2. In the group, create a private project called project-1
  3. go to project-1 > ci/cd settings> runners & create a project runner
image.png
image.png From the original on GitLab
image.png
image.png
  1. Then follow the register runner setup & add the runner
image.png
image.png From the original on GitLab
  1. Note the runner ID in the URL
image.png
image.png From the original on GitLab

attacker steps:

  1. Create a new group called attacker-group-1 & apply GitLab Ultimate trial to it
  2. attacker-1 creates a custom role guest+Manage runners & adds the attacker-2 with the custom role
  3. attacker-1 creates a attacker-project-1 in the attacker-group-1 & notes the project ID
  4. Log in as attacker-2 & use the below API & where the runner ID is the victim runner ID (it's an incremental value, so it's too guessable & also in the local instance it starts with 1, 2, 3, 4, etc...)

Replace the value below,

project-id with the attacker attacker-project-1
runner_id with the victim runner ID
your_access_token - create an api scope token with the attacker-2 account

curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/project-id/runners" \  
     --form "runner_id=9"  
  1. Go to the attacker-project-1 > ci/cd settings> runners, where you can manage the victim runner like edit, pause, etc...
image.png
image.png From the original on GitLab
image.png
image.png
image.png
image.png
Impact

IDOR able to add any project runner to the attacker project and manage the runner

Examples
What is the current bug behavior?

IDOR able to add any project runner to the attacker project and manage the runner

What is the expected correct behavior?

Only the authorized user can edit

Relevant logs and/or screenshots
Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Impact

IDOR able to add any project runner to the attacker project and manage the runner

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 API endpoint for adding a runner to a project does not verify that the user has permission to access the runner being added, allowing any runner ID to be attached.

What the attacker needed

Attacker has a custom role guest+Manage runners; victim has a project runner; attacker knows or guesses the runner ID

How it was found

  1. Victim creates a private project and adds a runner to it, noting the runner ID.
  2. Attacker creates a group with an Ultimate trial and a custom role guest+Manage runners, then adds a second attacker user with that role.
  3. Attacker creates a project in their group and notes its project ID.
  4. Attacker logs in as the second user and sends a POST request to the API endpoint for adding a runner to their project, using the victim's runner ID.
  5. Attacker goes to their project's CI/CD settings runners page and can manage the victim's runner (edit, pause, etc.).

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.

Someone with a limited custom role can attach another project's runner to their own project and then control it, because the runner ID is guessable.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.