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

==The main issue is that the custom role guest+Manage runners can add any project runner in the instance & control it==
simple POC:
victim :
victimcreates a private project & adds a runner to it
attacker:
attackercreates anattacker-group-1& adds ultimate trial to itattackercreates a custom roleguest+Manage runners& adds theattacker-2with the custom roleattackercreates aattacker-project-1in theattacker-group-1& notes the project ID- 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"
- 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:
- Create a new group called
group-1& apply GitLab Ultimate trial to it - In the group, create a private project called
project-1 - go to
project-1>ci/cd settings>runners& create a project runner


- Then follow the register runner setup & add the runner

- Note the runner ID in the URL

attacker steps:
- Create a new group called
attacker-group-1& apply GitLab Ultimate trial to it attacker-1creates a custom roleguest+Manage runners& adds theattacker-2with the custom roleattacker-1creates aattacker-project-1in theattacker-group-1& notes the project ID- 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"
- Go to the
attacker-project-1> ci/cd settings> runners, where you can manage the victim runner like edit, pause, etc...



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:
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
- Victim creates a private project and adds a runner to it, noting the runner ID.
- Attacker creates a group with an Ultimate trial and a custom role guest+Manage runners, then adds a second attacker user with that role.
- Attacker creates a project in their group and notes its project ID.
- 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.
- 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.