Apache Struts CVE-2018-11776 Results With No Namespace Remote Code Execution (S2-057) (remote)

Critical Nessus Plugin ID 112064

Synopsis

The remote web server contains a web application that 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 affected by a remote code execution vulnerability in the handling of results with no namespace set. An unauthenticated, remote attacker can exploit this, via a specially crafted HTTP request, to potentially execute arbitrary code, subject to the privileges of the web server user.

Solution

Upgrade to Apache Struts version 2.3.35 / 2.5.17 or later.

See Also

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

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

http://seclists.org/bugtraq/2018/Aug/46

https://semmle.com/news/apache-struts-CVE-2018-11776

https://lgtm.com/blog/apache_struts_CVE-2018-11776

Plugin Details

Severity: Critical

ID: 112064

File Name: struts_2_5_17_rce.nasl

Version: 1.7

Type: remote

Family: CGI abuses

Published: 2018/08/23

Modified: 2018/11/14

Dependencies: 10107, 67257, 11936

Risk Information

Risk Factor: Critical

CVSS Score Source: manual

CVSS Score Rationale: Remote code execution

CVSS v2.0

Base Score: 10

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

CVSS v3.0

Base Score: 9.8

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

Vulnerability Information

CPE: cpe:/a:apache:struts

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Exploited by Nessus: true

Patch Publication Date: 2018/08/22

Vulnerability Publication Date: 2018/08/22

Exploitable With

Metasploit (Apache Struts 2 Namespace Redirect OGNL Injection)

Elliot (Apache Struts 2 Multiple Tags Result Namespace Handling RCE)

Reference Information

CVE: CVE-2018-11776

BID: 105125