Apache Struts 2 ParameterInterceptor Class OGNL Expression Parsing Remote Command Execution

critical Nessus Plugin ID 57850

Synopsis

A remote web application uses a framework that is affected by a code execution vulnerability.

Description

The remote web application appears to use Apache Struts 2, a web framework that uses XWork. Due to a flaw in the ParameterInterceptor class, user input is not properly sanitized, which allows a remote attacker to run arbitrary Java code on the remote host by sending a specially crafted HTTP request.

Solution

Upgrade to Struts 2.3.1.2 or later.

See Also

http://blog.o0o.nu/2012/01/cve-2011-3923-yet-another-struts2.html

https://cwiki.apache.org/confluence/display/WW/S2-009

Plugin Details

Severity: Critical

ID: 57850

File Name: struts_xwork_ognl_code_execution_safe2.nasl

Version: 1.30

Type: remote

Family: CGI abuses

Published: 2/6/2012

Updated: 5/28/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 8.3

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

CVSS Score Source: CVE-2011-3923

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

Required KB Items: Settings/enable_web_app_tests

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Patch Publication Date: 1/22/2012

Vulnerability Publication Date: 1/22/2012

Exploitable With

CANVAS (White_Phosphorus)

Metasploit (Apache Struts ParametersInterceptor Remote Code Execution)

Elliot (Apache-Struts ParameterInterceptor < 2.3.1.2 RCE Linux)

Reference Information

CVE: CVE-2011-3923

BID: 51628