Skip to content
Info disclosure Disclosed report Beginner

A GitLab instance runner's maintenance note can be seen by other users via the API and GraphQL

A maintenance note on a GitLab instance runner, intended to be visible only to administrators, could be read by any authenticated user through the REST API and GraphQL. An attacker could enumerate runner IDs and retrieve the note text.

GitLab

Originally disclosed on GitLab

  • Fixed in 2 months
  • Disclosed after 2 months

⚠️ 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 #3173328 by iamgk808 on 2025-06-01, assigned to @katwu:

Report | Attachments | How To Reproduce

Report

Summary

In a GitLab self-managed instance, on the CI/CD > Runners page, we can view the details of a runner where an administrator can add a note called Maintenance Note. This note is intended to be visible only to administrators. However, I found that any user can see the Maintenance Note via the API and GraphQL

image.png
image.png From the original on GitLab
Steps to reproduce
  • Use GitLab self-instance

  • two users - admin, attacker

admin steps

  1. As admin, go to admin area > CI/CD>runners
  2. Click on create instance runner and add some details in the Maintenance note & click on create runner
image.png
image.png From the original on GitLab
  1. On the next page, just don't do anything and click on View Runners
image.png
image.png From the original on GitLab
  1. Note the ID of the runner from the page URL (The runner ID is just an incremental numerical ID, so it's easy to guess)
image.png
image.png From the original on GitLab

attacker steps

  1. Log in as attacker
  2. Now visit http://localhost/api/v4/runners/5, where localhost is replaced with your instance URL & 5 is the runner ID
image.png
image.png From the original on GitLab
  1. Open http://localhost/-/graphql-explorer & use this below request
query {  
  runner(id: "gid://gitlab/Ci::Runner/5") {  
    id  
    description  
    maintenanceNoteHtml  
    maintenanceNote  
     
  }  
}

image.png
image.png From the original on GitLab
Impact

The instance runner's maintenance note is seen by non-admin users

Examples
What is the current bug behavior?

The instance runner's maintenance note is seen by non-admin users

What is the expected correct behavior?

Only admins should see the maintenance notes

Relevant logs and/or screenshots
Output of checks

(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)

Results of GitLab environment info
GitLab information  
Version:        18.0.1-ee  
Revision:       3426be1b938  
Directory:      /opt/gitlab/embedded/service/gitlab-rails  
DB Adapter:     PostgreSQL  
DB Version:     16.8  
URL:            http://localhost  
HTTP Clone URL: http://localhost/some-group/some-project.git  
SSH Clone URL:  git@localhost:some-group/some-project.git  
Elasticsearch:  no  
Geo:            no  
Using LDAP:     no  
Using Omniauth: yes  
Omniauth Providers:

GitLab Shell  
Version:        14.42.0  
Repository storages:  
- default:      unix:/var/opt/gitlab/gitaly/gitaly.socket  
GitLab Shell path:              /opt/gitlab/embedded/service/gitlab-shell

Gitaly  
- default Address:      unix:/var/opt/gitlab/gitaly/gitaly.socket  
- default Version:      18.0.1  
- default Git Version:  2.49.0.gl2  

Impact

The instance runner's maintenance note is seen by non-admin users

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

How To Reproduce

Please add reproducibility information to this section:

Proposal

After discussing in the Fleet Visibility weekly meeting, we decided to go forward with:

  1. Changing the UI to mention that the field is visible to runner maintainers (as opposed to administrators)
  2. Locking down the respective fields in GraphQL and REST API runner type so that the field is only visible to runner maintainers.

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 runner API and GraphQL resolver exposed the maintenance note field without checking whether the requesting user was an administrator.

Impact

Non-admin users could read the instance runner's maintenance note.

What the attacker needed

GitLab self-managed instance; an authenticated non-admin account; a runner with a maintenance note

The fix

The proposal is to change the UI wording and restrict the maintenance note fields in GraphQL and REST so only runner maintainers can see them.

How it was found

  1. As admin, create an instance runner with a maintenance note.
  2. Note the runner ID from the page URL.
  3. Log in as a non-admin user.
  4. Request the runner details through the REST API using the runner ID.
  5. Query the runner through GraphQL and read the maintenance note fields.

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 lets administrators add a private note to a shared CI/CD runner. The report shows that this note was not actually kept private: any logged-in user could ask the server for runner details and receive the note. The runner ID is a simple number, so guessing other runners' IDs is easy.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.