GitHub Advisoryadvisory · Maven

GHSA-m68x-cc2f-gr5h Unsafe methods in the default list of approved signatures in Jenkins Script Security Plugin

MEDIUM Published 2022-05-13 Modified 2024-01-30 Official page ↗
Aliases
CVE-2017-1000095
Ecosystem
Maven
Packages
org.jenkins-ci.plugins:script-security
Severity
Moderate
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-732
Reviewed
2024-01-30

Affected packages

• Maven org.jenkins-ci.plugins:script-security: < 1.29.1 → fixed in 1.29.1

Description

The default whitelist included the following unsafe 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).

Related

Alias · CVE (1)

  • CVE-2017-1000095 The default whitelist included the following unsafe entries: DefaultGroovyMethods.putAt(Object, String, Object);… vulnerability

Weakness · CWE (1)

  • CWE-732 Incorrect Permission Assignment for Critical Resource weakness

References