Miggo Logo

CVE-2017-1000107: Sandbox bypass in Jenkins Script Security Plugin sandbox bypass

8.8

CVSS Score
3.0

Basic Information

EPSS Score
0.50561%
CWE
-
Published
5/13/2022
Updated
1/30/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.jenkins-ci.plugins:script-securitymaven<= 1.301.31

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing sandbox checks for specific Groovy language constructs. The advisory explicitly identifies four bypass vectors: method references, positional constructor args, type coercion, and super constructor calls. Each corresponds to a security ticket (SECURITY-566/567/580/582) and specific AST processing functions in the Script Security Plugin. The functions listed are core sandbox enforcement points that lacked necessary validation in vulnerable versions, as evidenced by the patch notes requiring added restrictions for these expression types. Runtime exploitation would trigger these functions during malicious Groovy script evaluation.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

S*ript S**urity Plu*in *i* not *pply s*n**oxin* r*stri*tions to *onstru*tor invo**tions vi* position*l *r*um*nts list, sup*r *onstru*tor invo**tions, m*t*o* r***r*n**s, *n* typ* *o*r*ion *xpr*ssions. T*is *oul* ** us** to invok* *r*itr*ry *onstru*tor

Reasoning

T** vuln*r**ility st*ms *rom missin* s*n**ox ****ks *or sp**i*i* *roovy l*n*u*** *onstru*ts. T** **visory *xpli*itly i**nti*i*s *our *yp*ss v**tors: m*t*o* r***r*n**s, position*l *onstru*tor *r*s, typ* *o*r*ion, *n* sup*r *onstru*tor **lls. **** *orr