Miggo Logo

CVE-2020-2141: CSRF vulnerability in Jenkins P4 Plugin

4.3

CVSS Score
3.1

Basic Information

EPSS Score
0.61567%
Published
5/24/2022
Updated
12/13/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.jenkins-ci.plugins:p4maven< 1.10.111.10.11

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from endpoints that 1) accepted GET requests (lack of @POST annotations) and 2) had insufficient permission checks. The commit adds @POST verb restrictions, switches forms to POST, and implements Item.BUILD permission checks - all classic CSRF fixes. The affected methods handle build triggering and label creation operations, which matches the vulnerability description of attackers being able to 'trigger builds or add labels' via CSRF.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

* *ross-sit* r*qu*st *or**ry vuln*r**ility in J*nkins P* Plu*in *.**.** *n* **rli*r *llows *tt**k*rs to tri***r *uil*s or *** * l***ls in P*r*or**.

Reasoning

T** vuln*r**ility st*ms *rom *n*points t**t *) ****pt** **T r*qu*sts (l**k o* @POST *nnot*tions) *n* *) *** insu**i*i*nt p*rmission ****ks. T** *ommit ***s @POST v*r* r*stri*tions, swit***s *orms to POST, *n* impl*m*nts `It*m.*UIL*` p*rmission ****ks