Bug 1471060 (CVE-2017-1000095) - CVE-2017-1000095 jenkins-plugin-script-security: Unsafe methods in the default whitelist (SECURITY-538)
Summary: CVE-2017-1000095 jenkins-plugin-script-security: Unsafe methods in the defaul...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2017-1000095
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1471061 1472032
Blocks: 1471067
TreeView+ depends on / blocked
 
Reported: 2017-07-14 10:31 UTC by Adam Mariš
Modified: 2021-02-17 01:56 UTC (History)
16 users (show)

Fixed In Version: jenkins-plugin-script-security 1.29.1
Clone Of:
Environment:
Last Closed: 2017-08-14 16:43:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Mariš 2017-07-14 10:31:13 UTC
The default whitelist included the entries:

DefaultGroovyMethods.putAt(Object, String, Object)
DefaultGroovyMethods.getAt(Object, String)

These allowed circumventing many of the access restrictions implemented in the script sandbox by using e.g. currentBuild['rawBuild'] rather than currentBuild.rawBuild.

Additionally, the following entries allowed accessing private data that would not be accessible otherwise due to script security:

groovy.json.JsonOutput.toJson(Closure)
groovy.json.JsonOutput.toJson(Object)

External References:

https://jenkins.io/security/advisory/2017-07-10/

Comment 1 Adam Mariš 2017-07-14 10:31:36 UTC
Acknowledgments:

Name: the Jenkins project

Comment 2 Adam Mariš 2017-07-14 10:32:53 UTC
Created jenkins-script-security-plugin tracking bugs for this issue:

Affects: fedora-all [bug 1471061]

Comment 4 Trevor Jay 2017-08-14 16:43:05 UTC
Statement:

This issue affects the versions of jenkins-plugin-script-security as shipped with OpenShift Enterprise 3. However, this flaw is of low impact under the supported scenarios in OpenShift Enterprise 3. A future update may address this issue.


Note You need to log in before you can comment on or make changes to this bug.