Apache Struts 2 OGNL Expression Handling Double Evaluation Error Remote Command Execution

high Nessus Plugin ID 66931

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 that this plugin will only report the first vulnerable instance of a Struts 2 application.

Solution

Upgrade to version 2.3.14.3 or later.

See Also

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

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

Plugin Details

Severity: High

ID: 66931

File Name: struts_2_3_14_3_command_execution.nasl

Version: 1.17

Type: remote

Family: CGI abuses

Published: 6/19/2013

Updated: 5/28/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 7.3

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

CVSS Score Source: CVE-2013-2134

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.3

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:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:apache:struts

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: No exploit is required

Patch Publication Date: 5/29/2013

Vulnerability Publication Date: 5/29/2013

Reference Information

CVE: CVE-2013-2134, CVE-2013-2135

BID: 60345, 60346