Apache Struts 2 / XWork 远程代码执行(安全检查)

critical Nessus 插件 ID 47900

简介

远程 Web 应用程序使用受到代码执行漏洞影响的框架。

描述

远程 Web 应用程序似乎在使用 Struts 2(一种采用 XWork 的 Web 框架)。由于 XWork 中存在一个漏洞,因此可禁用用于防止远程代码执行的设置。远程攻击者可通过提交包含特别构建的 OGNL 语句的 HTTP 请求来利用此漏洞,进而导致执行任意 Java。请注意,Apache Archiva 版本包含 Struts,且可能会受到影响。

解决方案

升级到 Struts 2.2.1 或更高版本。或者,升级到 Archiva 1.3.6 或更高版本(若使用该产品)。

另见

http://blog.o0o.nu/2010/07/cve-2010-1870-struts2xwork-remote.html

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

http://archiva.apache.org/docs/1.3.6/release-notes.html

插件详情

严重性: Critical

ID: 47900

文件名: struts_xwork_ognl_code_execution_safe.nasl

版本: 1.34

类型: remote

系列: CGI abuses

发布时间: 2010/7/29

最近更新时间: 2022/4/11

配置: 启用偏执模式, 启用全面检查

支持的传感器: Nessus

风险信息

CVSS 分数理由: Nvd scores this vulnerability with a score of 5.0 but the tenable research team disagrees with their finding and set it to a 10.0 instead.

VPR

风险因素: High

分数: 7.4

CVSS v2

风险因素: Critical

基本分数: 10

时间分数: 8.3

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

CVSS 分数来源: CVE-2010-1870

CVSS v3

风险因素: Critical

基本分数: 9.8

时间分数: 9.1

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

时间矢量: CVSS:3.0/E:F/RL:O/RC:C

漏洞信息

CPE: cpe:/a:apache:struts

必需的 KB 项: Settings/ParanoidReport

易利用性: No exploit is required

补丁发布日期: 2010/8/16

漏洞发布日期: 2010/7/9

可利用的方式

CANVAS (White_Phosphorus)

Core Impact

Metasploit (Apache Struts Remote Command Execution)

Elliot (Apache-Struts < 2.2.0 RCE Linux)

参考资料信息

CVE: CVE-2010-1870

BID: 41592

SECUNIA: 40558, 40575