Exploit database

Vulnerability

CVE-2019-1003029

Vulnerability details

Score
9.9
Severity
critical

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Description

A sandbox bypass vulnerability exists in Jenkins Script Security Plugin 1.53 and earlier in src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/GroovySandbox.java, src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SecureGroovyScript.java that allows attackers with Overall/Read permission to execute arbitrary code on the Jenkins master JVM.

CVE Program

Exploit source choices

3 sources
Jenkins ACL Bypass and Metaprogramming RCE
MSF-multi--http--jenkins_metaprogrammingMetasploitJava,Unix / remotePreferred

This module exploits a vulnerability in Jenkins dynamic routing to bypass the Overall/Read ACL and leverage Groovy metaprogramming to download and execute a malicious JAR file. When the "Java Dropper" target is selected, the original entry point based on classLoader.parseClass is used, which requires the use of Groovy metaprogramming to achieve RCE. When the "Unix In-Memory" target is selected, a newer, higher-level, and more universal entry point based on GroovyShell.parse is used. This permits the use of in-memory arbitrary command execution. The ACL bypass gadget is specific to Jenkins <= 2.137 and will not work on later versions of Jenkins. Tested against Jenkins 2.137 and Pipeline: Groovy Plugin 2.61.

2019-01-08jenkins_metaprogramming.rb
cnhack3r/penetration_poc
GH-fdd34977de44cc5d80df5c3881fca455GitHubUnofficial GitHub source

FROM:@Mr-xn 渗透测试有关的POC、EXP、脚本、提权、小工具等---About penetration-testing python-script poc getshell csrf xss cms php-getshell domainmod-xss penetration-testing-poc csrf-webshell cobub-razor cve rce sql sql-poc poc-exp bypass oa-getshell cve-cms

2022-01-11319 files · 23 stars
cashiuus/jenkins-checkscript-rce
GH-21c82db822105c0ad23cd82d22ce0137GitHubUnofficial GitHub source

cashiuus/jenkins-checkscript-rce source repository

2021-11-244 files · 0 stars