Skip to content
Access control Disclosed report Intermediate

Users without any project membership can view manual job variables in internal projects

Users who are not members of an internal project can still read the values of manual job variables through a GraphQL query, because every instance user has implicit guest access to internal projects. An attacker with any account on the instance could therefore view secrets that were entered as manual job variables.

GitLab

Originally disclosed on GitLab

  • Fixed in 36 days
  • Disclosed after 36 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 #3319800 by joaxcar on 2025-08-29, assigned to @cmaxim:

Report | How To Reproduce

Report

Summary

Similar to CVE-2025-2246, there is still a slight issue with how variables related to manual jobs are accessed. This is the information in the docs:

warning
Any project member with permissions to run a manual job can retry the job and view the variables that were provided when the job was initially run. This includes:
In public projects: Users with the Developer role or higher.
In private or internal projects: Users with the Guest role or higher.
Consider this visibility when entering sensitive information as manual job variables.

The issue is that all users of the instance have "implicit" guest access to internal projects. That means that even if a user on the instance is not a member of the project, they can still view the values of any manual variable on jobs. It could be that this is how the patch was intented, but the wording Any project member in the docs makes it sound like a user need to get explicit guest access to a project to view these variables. And this is not the case, any user on the instance has implicit guest access and will thus pass this check

Ruby
    rule { ~public_project & guest }.enable :read_manual_variables  
Steps to reproduce
  1. Set up a self hosted instance
  2. Create two users attacker and victim
  3. As victim create a new internal project
  4. Add a .gitlab-ci.yml file in the project with this content
test:  
  script: echo "hi"  
  when: manual  
  1. Go to GROUPNAME/PROJECTNAME/-/jobs?statuses=MANUAL&kind=BUILD

  2. Click on the Manual button

  3. Enter a few key and value pairs as variables and run the job

  4. Log in as attacker

  5. Go to YOUR_GITLAB_URL/-/graphql-explorer

  6. Run this query (replace GROUP/PROJECT with your group and project name

GraphQL
query{  
  project(fullPath:"joaxcar-test13/new_ato"){  
    jobs{  
      nodes{  
        name  
        manualVariables{  
          nodes{  
            key  
            value  
          }  
        }  
      }  
    }  
  }  
}
  1. You should see the values of the variables even if you are not a member of the project
What is the current bug behavior?

Any user on the instance can view manual variables on intenal projects

What is the expected correct behavior?

Users should be explicit members to view variable values

Impact

Non members of internal projects can see job manual variables in GraphQL

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 permission rule grants read access to manual variables to any guest, and internal projects give every instance user implicit guest access, so the check passes for non-members.

Impact

Any user with an account on the instance could read manual job variable values in internal projects, which may expose sensitive information entered there.

What the attacker needed

An account on the instance; an internal project with a manual job; variables entered when running the job

The fix

The permission check should require explicit project membership rather than implicit guest access before manual variable values are returned.

How it was found

  1. Set up a self-hosted instance and create two users, attacker and victim.
  2. As the victim, create an internal project and add a CI file with a manual job.
  3. Run the manual job and enter key/value variable pairs.
  4. Log in as the attacker and open the GraphQL explorer.
  5. Run a query asking for the project's jobs and their manual variables.
  6. Observe the variable values even though the attacker is not a project member.

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 manual job is a pipeline step that waits for someone to press a button before it runs, and that person can type in extra values (variables) at that moment. The project's permission check treated every logged-in user as a guest of internal projects, so anyone with an account could read those typed-in values, even without being added to the project.

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.