Apache Struts 2.x < 2.3.14.2 Remote Code Execution Vulnerability (S2-013)

critical Nessus Plugin ID 117401

Synopsis

A web application running on the remote host uses a Java framework that is affected by a remote code execution vulnerability.

Description

The version of Apache Struts running on the remote host is 2.x prior to 2.3.14.2. It, therefore, is affected by a remote code execution vulnerability in the URL and Anchor tags due to a flaw in handling the includeParams attribute. A remote, unauthenticated attacker can exploit this issue, via a specially crafted request to inject arbitrary OGNL code into the stack and execute arbitrary methods, bypassing Struts and OGNL library protections.

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

Solution

Upgrade to Apache Struts version 2.3.14.2 or later

See Also

http://www.nessus.org/u?a3ab6fd3

http://www.nessus.org/u?0b2a9311

Plugin Details

Severity: Critical

ID: 117401

File Name: struts_2_3_14_1.nasl

Version: 1.13

Type: combined

Agent: windows, macosx, unix

Family: Misc.

Published: 9/11/2018

Updated: 4/11/2022

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: 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-1966

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: 4/16/2013

Vulnerability Publication Date: 4/16/2013

Exploitable With

Core Impact

Metasploit (Apache Struts includeParams Remote Code Execution)

Elliot (Apache-Struts IncludeParams < 2.3.14.1 RCE Linux)

Reference Information

CVE: CVE-2013-1966

BID: 60166