https://bugzilla.redhat.com/show_bug.cgi?id=1735515
Bug ID: 1735515 Summary: CVE-2019-10355 jenkins-plugin-script-security: Sandbox bypass through type casts in Script Security Plugin Product: Security Response Hardware: All OS: Linux Status: NEW Whiteboard: impact=important,public=20190801,reported=20190801,sou rce=internet,cvss3=8.8/CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S: U/C:H/I:H/A:H,cwe=CWE-704,fedora-all/jenkins-script-se curity-plugin=affected,openshift-enterprise-3.9/jenkin s-script-security-plugin=new,openshift-enterprise-3.10 /jenkins-script-security-plugin=new,openshift-enterpri se-3.11/jenkins-2-plugins=new,openshift-enterprise-4.1 /jenkins-2-plugins=new,openshift-4.2/jenkins-2-plugins =new Component: vulnerability Keywords: Security Severity: high Priority: high Assignee: security-response-team@redhat.com Reporter: sfowler@redhat.com CC: abenaiss@redhat.com, ahardin@redhat.com, bleanhar@redhat.com, ccoleman@redhat.com, dedgar@redhat.com, eparis@redhat.com, java-sig-commits@lists.fedoraproject.org, jgoulding@redhat.com, jokerman@redhat.com, mchappel@redhat.com, mizdebsk@redhat.com, msrb@redhat.com, vbobade@redhat.com Target Milestone: --- Classification: Other
Sandbox protection in Jenkins Script Security Plugin could be circumvented by casting crafted objects to other types. This allowed attackers able to specify sandboxed scripts to invoke constructors that weren’t whitelisted.
Additionally, this could be used to read arbitrary files on the Jenkins master.
Casting collections to other types as an alternative syntax for constructor invocation is now only allowed when the collection type is defined in java.util, and prohibited otherwise. Casting files and enums to arrays is now intercepted by the sandbox and treated as the invocation of an equivalent method.
External References:
https://jenkins.io/security/advisory/2019-07-31/#SECURITY-1465%20(1)
https://bugzilla.redhat.com/show_bug.cgi?id=1735515
Sam Fowler sfowler@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1735516
--- Comment #1 from Sam Fowler sfowler@redhat.com --- Created jenkins-script-security-plugin tracking bugs for this issue:
Affects: fedora-all [bug 1735516]
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1735516 [Bug 1735516] CVE-2019-10355 jenkins-script-security-plugin: jenkins-plugin-script-security: Sandbox bypass through type casts in Script Security Plugin [fedora-all]
https://bugzilla.redhat.com/show_bug.cgi?id=1735515
Sam Fowler sfowler@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1735517 Whiteboard|impact=important,public=201 |impact=important,public=201 |90801,reported=20190801,sou |90801,reported=20190801,sou |rce=internet,cvss3=8.8/CVSS |rce=internet,cvss3=8.8/CVSS |:3.0/AV:N/AC:L/PR:L/UI:N/S: |:3.0/AV:N/AC:L/PR:L/UI:N/S: |U/C:H/I:H/A:H,cwe=CWE-704,f |U/C:H/I:H/A:H,cwe=CWE-704,f |edora-all/jenkins-script-se |edora-all/jenkins-script-se |curity-plugin=affected,open |curity-plugin=affected,open |shift-enterprise-3.9/jenkin |shift-enterprise-3.9/jenkin |s-script-security-plugin=ne |s-script-security-plugin=ne |w,openshift-enterprise-3.10 |w,openshift-enterprise-3.10 |/jenkins-script-security-pl |/jenkins-script-security-pl |ugin=new,openshift-enterpri |ugin=new,openshift-enterpri |se-3.11/jenkins-2-plugins=n |se-3.11/jenkins-2-plugins=a |ew,openshift-enterprise-4.1 |ffected,openshift-enterpris |/jenkins-2-plugins=new,open |e-4.1/jenkins-2-plugins=aff |shift-4.2/jenkins-2-plugins |ected,openshift-4.2/jenkins |=new |-2-plugins=affected
https://bugzilla.redhat.com/show_bug.cgi?id=1735515
Sam Fowler sfowler@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1735526
https://bugzilla.redhat.com/show_bug.cgi?id=1735515
Sam Fowler sfowler@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1735527
https://bugzilla.redhat.com/show_bug.cgi?id=1735515
Sam Fowler sfowler@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1735528
https://bugzilla.redhat.com/show_bug.cgi?id=1735515
--- Comment #5 from Sam Fowler sfowler@redhat.com --- "Any security advisory related updates to Jenkins core or the plugins we include in the OpenShift Jenkins master image will only occur in the v3.11 and v4.x branches of this repository."
https://github.com/openshift/jenkins/blob/master/README.md#jenkins-security-...
https://bugzilla.redhat.com/show_bug.cgi?id=1735515
--- Comment #6 from errata-xmlrpc errata-xmlrpc@redhat.com --- This issue has been addressed in the following products:
Red Hat OpenShift Container Platform 3.11
Via RHSA-2019:2651 https://access.redhat.com/errata/RHSA-2019:2651
https://bugzilla.redhat.com/show_bug.cgi?id=1735515
errata-xmlrpc errata-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Link ID| |Red Hat Product Errata | |RHSA-2019:2651
https://bugzilla.redhat.com/show_bug.cgi?id=1735515
Product Security DevOps Team prodsec-dev@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |ERRATA Last Closed| |2019-09-04 13:07:28
--- Comment #7 from Product Security DevOps Team prodsec-dev@redhat.com --- This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):
https://access.redhat.com/security/cve/cve-2019-10355
https://bugzilla.redhat.com/show_bug.cgi?id=1735515
--- Comment #8 from errata-xmlrpc errata-xmlrpc@redhat.com --- This issue has been addressed in the following products:
Red Hat OpenShift Container Platform 4.1
Via RHSA-2019:2662 https://access.redhat.com/errata/RHSA-2019:2662
https://bugzilla.redhat.com/show_bug.cgi?id=1735515
errata-xmlrpc errata-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Link ID| |Red Hat Product Errata | |RHSA-2019:2662
https://bugzilla.redhat.com/show_bug.cgi?id=1735515
--- Doc Text *updated* by Eric Christensen sparks@redhat.com --- A flaw was found in Jenkins Script Security plugin. Sandbox protection could be circumvented by casting crafted objects to other types allowing an attacker to specify sandboxed scripts to invoke constructors that weren't previously whitelisted. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
https://bugzilla.redhat.com/show_bug.cgi?id=1735515 Bug 1735515 depends on bug 1735516, which changed state.
Bug 1735516 Summary: CVE-2019-10355 jenkins-script-security-plugin: jenkins-plugin-script-security: Sandbox bypass through type casts in Script Security Plugin [fedora-all] https://bugzilla.redhat.com/show_bug.cgi?id=1735516
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |EOL
java-sig-commits@lists.fedoraproject.org