GHSA-g66m-fqxf-3w35

Suggest an improvement
Source
https://github.com/advisories/GHSA-g66m-fqxf-3w35
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-g66m-fqxf-3w35/GHSA-g66m-fqxf-3w35.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-g66m-fqxf-3w35
Aliases
  • CVE-2022-43407
Published
2022-10-19T19:00:22Z
Modified
2024-02-16T08:03:37.666070Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
CSRF protection for any URL can be bypassed in Jenkins Pipeline: Input Step Plugin
Details

Pipeline: Input Step Plugin 451.vf1aa4f405289 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.vd8a957db5b_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.

Database specific
{
    "nvd_published_at": "2022-10-19T16:15:00Z",
    "cwe_ids": [
        "CWE-838"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-10-19T21:21:29Z"
}
References

Affected packages

Maven / org.jenkins-ci.plugins:pipeline-input-step

Package

Name
org.jenkins-ci.plugins:pipeline-input-step
View open source insights on deps.dev
Purl
pkg:maven/org.jenkins-ci.plugins/pipeline-input-step

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
456.vd8a_957db_5b_e9

Affected versions

2.*

2.0
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
2.12.1
2.12.2

427.*

427.va6441fa17010

446.*

446.vf27b_0b_83500e

447.*

447.v95e5a_6e3502a_
447.449.v193fd29f6021

448.*

448.v37cea_9a_10a_70

449.*

449.v77f0e8b_845c4
449.451.v9c3d42f23975

451.*

451.vf1a_a_4f405289

Database specific

{
    "last_known_affected_version_range": "< 456.vd8a"
}