Apache Struts 2 Crafted Parameter Arbitrary OGNL Expression Remote Command Execution

high Nessus Plugin ID 66935

Synopsis

The remote web server contains a web application that uses a Java framework that is affected by a remote command execution vulnerability.

Description

The remote web application appears to use Struts 2, a web framework that utilizes OGNL (Object-Graph Navigation Language) as an expression language. Due to a flaw in the evaluation of an OGNL expression, a remote, unauthenticated attacker can exploit this issue to execute arbitrary commands on the remote web server by sending a specially crafted HTTP request.

Note this issue exists because of an incomplete fix for CVE-2013-1966.

Note that this version of Struts 2 is reportedly also affected by multiple cross-site scripting (XSS) vulnerabilities as well as session access and manipulation attacks; however, Nessus has not tested for these issues.

Note that this plugin will only report the first vulnerable instance of a Struts 2 application.

Solution

Upgrade to version 2.3.14.2 or later.

See Also

http://www.nessus.org/u?51bd9543

http://struts.apache.org/docs/s2-014.html

Plugin Details

Severity: High

ID: 66935

File Name: struts_2_3_14_2_command_execution.nasl

Version: 1.21

Type: remote

Family: CGI abuses

Published: 6/19/2013

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 7.7

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

CVSS Score Source: CVE-2013-1965

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.5

Vector: CVSS:3.0/AV:N/AC:H/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: No exploit is required

Exploited by Nessus: true

Patch Publication Date: 5/22/2013

Vulnerability Publication Date: 5/2/2013

Exploitable With

Core Impact

Metasploit (Apache Struts includeParams Remote Code Execution)

Elliot (Apache-Struts Showcase < 2.3.14.1 RCE Linux)

Reference Information

CVE: CVE-2013-1965, CVE-2013-1966, CVE-2013-2115

BID: 60082, 60167, 60166