CVE-2022-43407: CSRF protection for any URL can be bypassed in Jenkins Pipeline: Input Step Plugin
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.01075%
CWE
Published
10/19/2022
Updated
1/5/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.jenkins-ci.plugins:pipeline-input-step | maven | < 456.vd8a | 456.vd8a_957db_5b_e9 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two key points: 1) The InputStep.setId method allowed arbitrary characters in the 'id' parameter without validation, enabling malicious IDs. 2) The Jelly template used these raw IDs in form action URLs without encoding. The commit added ID validation (doCheckId) in InputStep.java and encoding in index.jelly, confirming these were the vulnerable points. The test cases explicitly validate() these fixes, reinforcing their role in the vulnerability.