CVE-2022-43407
CSRF protection for any URL can be bypassed in Jenkins Pipeline: Input Step Plugin
Description
Pipeline: Input Step Plugin 451.vf1a_a_4f405289 and earlier does not restrict or sanitize the optionally specified ID of the input step. This ID is used for the URLs that process user interactions for the given input step (proceed or abort) and is not correctly encoded.
This allows attackers able to configure Pipelines to have Jenkins build URLs from input step IDs that would bypass the CSRF protection of any target URL in Jenkins when the input step is interacted with.
Pipeline: Input Step Plugin 456.vd8a_957db_5b_e9 limits the characters that can be used for the ID of input steps in Pipelines to alphanumeric characters and URL-safe punctuation. Pipelines with input steps having IDs with prohibited characters will fail with an error.
This includes Pipelines that have already been started but not finished before Jenkins is restarted to apply this update.
Pipeline: Declarative Plugin provides an input directive that is internally using the input step, and specifies a non-default ID if not user-defined. Pipeline: Declarative Plugin 2.2114.v2654ca_721309 and earlier may specify values incompatible with this new restriction on legal values: input directives in a stage use the stage name (which may include prohibited characters) and input directives in a matrix will use a value generated from the matrix axis values (which always includes prohibited characters). Administrators are advised to update Pipeline: Input Step Plugin and Pipeline: Declarative Plugin at the same time, ideally while no Pipelines are running.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » pipeline-input-step | < 456.vd8a_957db_5b_e9 | 456.vd8a_957db_5b_e9 |
Blast radius
35% of the dependent artifacts (28) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,214 |
| 2 hops | 6,287 |
| 3 hops | 557 |
| 4 hops | 46 |
| 5 hops | 6 |
Most used dependents
- org.jenkins-ci.plugins.workflow » workflow-aggregator136 usages
- org.jenkins-ci.plugins » token-macro134 usages
- org.jenkinsci.plugins » pipeline-model-definition68 usages
- org.jenkins-ci.plugins.pipeline-stage-view » pipeline-rest-api20 usages
- org.jenkins-ci.plugins » docker-workflow11 usages
- io.jenkins.blueocean » blueocean-pipeline-api-impl9 usages
- org.jenkins-ci.plugins » pipeline-graph-analysis8 usages
- org.jenkins-ci.plugins.pipeline-stage-view » pipeline-stage-view7 usages
- io.jenkins.blueocean » blueocean-events4 usages
- io.jenkins.jenkinsfile-runner » payload-dependencies4 usages
- io.jenkins.plugins » pipeline-as-yaml4 usages
- io.jenkins.blueocean » blueocean3 usages
- io.jenkins.blueocean » blueocean-dashboard3 usages
- io.jenkins.jenkinsfile-runner » payload3 usages
- io.jenkins.plugins » opentelemetry2 usages
Computed from the dependency graph of build 20261201.0702 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2022-43407 | nvd.nist.gov |
| Package | jenkinsci/pipeline-input-step-plugin | github.com |
| Web | jenkinsci/pipeline-input-step-plugin commit d8a957d | github.com |
| Web | security/advisory/2022-10-19 | jenkins.io |
| Web | lists/oss-security/2022/10/19/3 | openwall.com |
