Apache Struts 2.3.x Showcase App Struts 1 Plugin ActionMessage Class Error Message Input Handling RCE (S2-048)

critical Nessus Plugin ID 101361

Synopsis

The remote Windows host contains a web application that uses a Java framework that is affected by a potential remote code execution vulnerability.

Description

The version of Apache Struts running on the remote Windows host is 2.3.x. It is, therefore, potentially affected by a remote code execution vulnerability in the Struts 1 plugin showcase app in the ActionMessage class due to improper validation of user-supplied input passed via error messages. An unauthenticated, remote attacker can exploit this to execute arbitrary code.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Refer to the vendor advisory for recommendations on passing data to the 'ActionMessage' class.

See Also

https://struts.apache.org/docs/s2-048.html

Plugin Details

Severity: Critical

ID: 101361

File Name: struts_2_3_x_rce_win_local.nasl

Version: 1.15

Type: combined

Agent: windows, macosx, unix

Family: Misc.

Published: 7/11/2017

Updated: 4/25/2023

Configuration: Enable thorough checks

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2017-9791

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 9.1

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:apache:struts

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 7/7/2017

Vulnerability Publication Date: 7/7/2017

CISA Known Exploited Vulnerability Due Dates: 8/10/2022

Exploitable With

Core Impact

Metasploit (Apache Struts 2 Struts 1 Plugin Showcase OGNL Code Execution)

Elliot (Apache Struts 2 Struts 1 Plugin ActionMessage < 2.3.32 RCE)

Reference Information

CVE: CVE-2017-9791

BID: 99484