jenkinsci / jenkinsci/parameterized-trigger-plugin

[JENKINS-50032] Jobs can be triggered with only Job/Read and Job/Configure

Open
#744 0 comments 0 reactions 0 assignees View on GitHub
component:parameterized-trigger-plugin imported-jira-issue priority:major resolution:unresolved security
Dominant language
Java
Stars
77
Forks
174
Avg merge
22h 27m
Merged PRs (30d)
1

Description


  • Create a job and assign an Authentication Token under Trigger builds remotely (e.g., from scripts)

  • Create a user and only assign Job/Read and Job/Configure permission for this job.

  • Navigate to the job as the newly created user, retrieve the build URL which contains the token.

  • The user cannot build this job via the UI.

  • Retrive the user's API token ($JENKINS_URL/users/$USERNAME)

  • Go to command line and use the following curl command: curl -X POST $JENKINS_URL/job/$JOB_NAME/build?token\=$AUTHENTICATION_TOKEN -u $USER_NAME:$API_TOKEN

  • The job will be now be built.

---
Originally reported by joshshinn, imported from: Jobs can be triggered with only Job/Read and Job/Configure


  • status: Open
  • priority: Major
  • component(s): parameterized-trigger-plugin
  • label(s): security
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07

Raw content of original issue


  • Create a job and assign an Authentication Token under Trigger builds remotely (e.g., from scripts)

  • Create a user and only assign Job/Read and Job/Configure permission for this job.

  • Navigate to the job as the newly created user, retrieve the build URL which contains the token.

  • The user cannot build this job via the UI.

  • Retrive the user's API token ($JENKINS_URL/users/$USERNAME)

  • Go to command line and use the following curl command: curl -X POST $JENKINS_URL/job/$JOB_NAME/build?token\=$AUTHENTICATION_TOKEN -u $USER_NAME:$API_TOKEN

  • The job will be now be built.


  • environment: Parameterized trigger plugin 2.35.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.