CVE-2005-3745
CVSS4.3
发布时间 :2005-11-22 06:03:00
修订时间 :2011-03-07 21:27:04
NMCOPS    

[原文]Cross-site scripting (XSS) vulnerability in Apache Struts 1.2.7, and possibly other versions allows remote attackers to inject arbitrary web script or HTML via the query string, which is not properly quoted or filtered when the request handler generates an error message.


[CNNVD]Apache Struts错误响应跨站脚本漏洞(CNNVD-200511-357)

        Struts是用于构建Web应用的开放源码架构。
        Struts对用户提交的URL处理上存在几个安全问题,攻击者可能利用这些漏洞对客户端进行攻击。
        在试图访问不存在的Struts操作URL时,struts基础架构生成错误响应请求操作的路径。生成这种错误的机制没有执行充分的输入验证,也没有执行输出的HTML编码,导致系统在某些环境中受跨站脚本攻击影响。
        通常Struts操作URL格式如下:
        http://foo.bar/strdir/action.do
        在维护do后缀时如果访问了不存在的操作,如:
        http://foo.bar/struts-virtdir/NOSUCHACTION.do
        struts请求处理器处理该请求,生成400 Bad Request错误。默认错误响应文中包含以下文本:
        Invalid path /NOASUCHACTION was requested
        如果用脚本替换不存在的操作,就可能执行跨站脚本攻击。
        

- CVSS (基础分值)

CVSS分值: 4.3 [中等(MEDIUM)]
机密性影响: NONE [对系统的机密性无影响]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: NONE [对系统可用性无影响]
攻击复杂度: MEDIUM [漏洞利用存在一定的访问条件]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

产品及版本信息(CPE)暂不可用

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-3745
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2005-3745
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200511-357
(官方数据源) CNNVD

- 其它链接及资源

http://www.securityfocus.com/bid/15512
(PATCH)  BID  15512
http://www.securityfocus.com/archive/1/archive/1/417296/30/0/threaded
(VENDOR_ADVISORY)  BUGTRAQ  20051121 Security Advisory: Struts Error Message Cross Site Scripting
http://www.hacktics.com/AdvStrutsNov05.html
(VENDOR_ADVISORY)  MISC  http://www.hacktics.com/AdvStrutsNov05.html
http://www.vupen.com/english/advisories/2005/2525
(UNKNOWN)  VUPEN  ADV-2005-2525
http://www.redhat.com/support/errata/RHSA-2006-0161.html
(UNKNOWN)  REDHAT  RHSA-2006:0161
http://www.redhat.com/support/errata/RHSA-2006-0157.html
(UNKNOWN)  REDHAT  RHSA-2006:0157
http://www.osvdb.org/21021
(UNKNOWN)  OSVDB  21021
http://securitytracker.com/id?1015257
(UNKNOWN)  SECTRACK  1015257
http://securityreason.com/securityalert/197
(UNKNOWN)  SREASON  197
http://secunia.com/advisories/18341
(UNKNOWN)  SECUNIA  18341
http://secunia.com/advisories/17677
(UNKNOWN)  SECUNIA  17677

- 漏洞信息

Apache Struts错误响应跨站脚本漏洞
中危 跨站脚本
2005-11-22 00:00:00 2005-11-23 00:00:00
远程  
        Struts是用于构建Web应用的开放源码架构。
        Struts对用户提交的URL处理上存在几个安全问题,攻击者可能利用这些漏洞对客户端进行攻击。
        在试图访问不存在的Struts操作URL时,struts基础架构生成错误响应请求操作的路径。生成这种错误的机制没有执行充分的输入验证,也没有执行输出的HTML编码,导致系统在某些环境中受跨站脚本攻击影响。
        通常Struts操作URL格式如下:
        http://foo.bar/strdir/action.do
        在维护do后缀时如果访问了不存在的操作,如:
        http://foo.bar/struts-virtdir/NOSUCHACTION.do
        struts请求处理器处理该请求,生成400 Bad Request错误。默认错误响应文中包含以下文本:
        Invalid path /NOASUCHACTION was requested
        如果用脚本替换不存在的操作,就可能执行跨站脚本攻击。
        

- 公告与补丁

        目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:
        http://struts.apache.org/download.cgi

- 漏洞信息 (F43061)

RHSA-2006-0157.txt (PacketStormID:F43061)
2006-01-15 00:00:00
Red Hat  
advisory,xss
linux,redhat
CVE-2005-3745
[点击下载]

Red Hat Security Advisory - A cross-site scripting flaw was found in the way Struts displays error pages. It may be possible for an attacker to construct a specially crafted URL which could fool a victim into believing they are viewing a trusted site.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- ---------------------------------------------------------------------
                   Red Hat Security Advisory

Synopsis:          Low: struts security update for Red Hat Application Server
Advisory ID:       RHSA-2006:0157-01
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2006-0157.html
Issue date:        2006-01-11
Updated on:        2006-01-11
Product:           Red Hat Application Server
CVE Names:         CVE-2005-3745
- ---------------------------------------------------------------------

1. Summary:

Updated Red Hat Application Server components are now available including a
security update for Struts.

This update has been rated as having low security impact by the Red Hat
Security Response Team.

2. Relevant releases/architectures:

Red Hat Application Server 3AS - noarch
Red Hat Application Server 3ES - noarch
Red Hat Application Server 3WS - noarch

3. Problem description:

Red Hat Application Server packages provide a J2EE Application Server and
Web container as well as the underlying Java stack.

A cross-site scripting flaw was found in the way Struts displays error
pages. It may be possible for an attacker to construct a specially crafted
URL which could fool a victim into believing they are viewing a trusted
site. The Common Vulnerabilities and Exposures project assigned the
name CVE-2005-3745 to this issue. Please note that this issue does not
affect Struts running on Tomcat or JOnAS, which is our supported usage of
Struts.

All users of Red Hat Application Server should upgrade to these updated
packages, which contain Struts version 1.2.8 which is not vulnerable to
this issue.

4. Solution:

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade.  Only those
RPMs which are currently installed will be updated.  Those RPMs which are
not installed but included in the list will not be updated.  Note that you
can also use wildcards (*.rpm) if your current directory *only* contains the
desired RPMs.

Please note that this update is also available via Red Hat Network.  Many
people find this an easier way to apply updates.  To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

5. Bug IDs fixed (http://bugzilla.redhat.com/):

173929 - CVE-2005-3745 struts cross site scripting flaw


6. RPMs required:

Red Hat Application Server 3AS:

SRPMS:
ftp://updates.redhat.com/enterprise/3AS/en/RHAPS/SRPMS/jakarta-commons-validator-1.1.4-1jpp_2rh.src.rpm
46933f732577bc526befdeea7bac8104  jakarta-commons-validator-1.1.4-1jpp_2rh.src.rpm
ftp://updates.redhat.com/enterprise/3AS/en/RHAPS/SRPMS/struts-1.2.8-1jpp_2rh.src.rpm
155997f9d1c9e4bc5aa5925fc4c32c09  struts-1.2.8-1jpp_2rh.src.rpm

noarch:
ftp://updates.redhat.com/enterprise/3AS/en/RHAPS/SRPMS/jakarta-commons-validator-1.1.4-1jpp_2rh.noarch.rpm
f98c1b067974f6be016c01b0ab6295a0  jakarta-commons-validator-1.1.4-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3AS/en/RHAPS/SRPMS/jakarta-commons-validator-javadoc-1.1.4-1jpp_2rh.noarch.rpm
32401dec1ab787c56760145a033a4d7c  jakarta-commons-validator-javadoc-1.1.4-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3AS/en/RHAPS/SRPMS/struts-1.2.8-1jpp_2rh.noarch.rpm
19ff36e45ff2aee9fab9e6aa06a8f46b  struts-1.2.8-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3AS/en/RHAPS/SRPMS/struts-javadoc-1.2.8-1jpp_2rh.noarch.rpm
80b709089a6c65cc926df4d64695777e  struts-javadoc-1.2.8-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3AS/en/RHAPS/SRPMS/struts-manual-1.2.8-1jpp_2rh.noarch.rpm
96e87e5eed99be4173961e8a805004c2  struts-manual-1.2.8-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3AS/en/RHAPS/SRPMS/struts-webapps-tomcat5-1.2.8-1jpp_2rh.noarch.rpm
9f50fcbd73cc59fdb65383bd9f3c28ef  struts-webapps-tomcat5-1.2.8-1jpp_2rh.noarch.rpm

Red Hat Application Server 3ES:

SRPMS:
ftp://updates.redhat.com/enterprise/3ES/en/RHAPS/SRPMS/jakarta-commons-validator-1.1.4-1jpp_2rh.src.rpm
46933f732577bc526befdeea7bac8104  jakarta-commons-validator-1.1.4-1jpp_2rh.src.rpm
ftp://updates.redhat.com/enterprise/3ES/en/RHAPS/SRPMS/struts-1.2.8-1jpp_2rh.src.rpm
155997f9d1c9e4bc5aa5925fc4c32c09  struts-1.2.8-1jpp_2rh.src.rpm

noarch:
ftp://updates.redhat.com/enterprise/3ES/en/RHAPS/SRPMS/jakarta-commons-validator-1.1.4-1jpp_2rh.noarch.rpm
f98c1b067974f6be016c01b0ab6295a0  jakarta-commons-validator-1.1.4-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3ES/en/RHAPS/SRPMS/jakarta-commons-validator-javadoc-1.1.4-1jpp_2rh.noarch.rpm
32401dec1ab787c56760145a033a4d7c  jakarta-commons-validator-javadoc-1.1.4-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3ES/en/RHAPS/SRPMS/struts-1.2.8-1jpp_2rh.noarch.rpm
19ff36e45ff2aee9fab9e6aa06a8f46b  struts-1.2.8-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3ES/en/RHAPS/SRPMS/struts-javadoc-1.2.8-1jpp_2rh.noarch.rpm
80b709089a6c65cc926df4d64695777e  struts-javadoc-1.2.8-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3ES/en/RHAPS/SRPMS/struts-manual-1.2.8-1jpp_2rh.noarch.rpm
96e87e5eed99be4173961e8a805004c2  struts-manual-1.2.8-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3ES/en/RHAPS/SRPMS/struts-webapps-tomcat5-1.2.8-1jpp_2rh.noarch.rpm
9f50fcbd73cc59fdb65383bd9f3c28ef  struts-webapps-tomcat5-1.2.8-1jpp_2rh.noarch.rpm

Red Hat Application Server 3WS:

SRPMS:
ftp://updates.redhat.com/enterprise/3WS/en/RHAPS/SRPMS/jakarta-commons-validator-1.1.4-1jpp_2rh.src.rpm
46933f732577bc526befdeea7bac8104  jakarta-commons-validator-1.1.4-1jpp_2rh.src.rpm
ftp://updates.redhat.com/enterprise/3WS/en/RHAPS/SRPMS/struts-1.2.8-1jpp_2rh.src.rpm
155997f9d1c9e4bc5aa5925fc4c32c09  struts-1.2.8-1jpp_2rh.src.rpm

noarch:
ftp://updates.redhat.com/enterprise/3WS/en/RHAPS/SRPMS/jakarta-commons-validator-1.1.4-1jpp_2rh.noarch.rpm
f98c1b067974f6be016c01b0ab6295a0  jakarta-commons-validator-1.1.4-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3WS/en/RHAPS/SRPMS/jakarta-commons-validator-javadoc-1.1.4-1jpp_2rh.noarch.rpm
32401dec1ab787c56760145a033a4d7c  jakarta-commons-validator-javadoc-1.1.4-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3WS/en/RHAPS/SRPMS/struts-1.2.8-1jpp_2rh.noarch.rpm
19ff36e45ff2aee9fab9e6aa06a8f46b  struts-1.2.8-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3WS/en/RHAPS/SRPMS/struts-javadoc-1.2.8-1jpp_2rh.noarch.rpm
80b709089a6c65cc926df4d64695777e  struts-javadoc-1.2.8-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3WS/en/RHAPS/SRPMS/struts-manual-1.2.8-1jpp_2rh.noarch.rpm
96e87e5eed99be4173961e8a805004c2  struts-manual-1.2.8-1jpp_2rh.noarch.rpm
ftp://updates.redhat.com/enterprise/3WS/en/RHAPS/SRPMS/struts-webapps-tomcat5-1.2.8-1jpp_2rh.noarch.rpm
9f50fcbd73cc59fdb65383bd9f3c28ef  struts-webapps-tomcat5-1.2.8-1jpp_2rh.noarch.rpm

These packages are GPG signed by Red Hat for security.  Our key and 
details on how to verify the signature are available from
https://www.redhat.com/security/team/key/#package

7. References:

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-3745

8. Contact:

The Red Hat security contact is <secalert@redhat.com>.  More contact
details at https://www.redhat.com/security/team/contact/

Copyright 2006 Red Hat, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFDxVlLXlSAg2UNWIIRAqmrAKC+1tnj98alqz84hEmPDTEYD1uPgQCeJbW3
8jVbO8dYQyf1vZPBWVW/R9E=
=p/4j
-----END PGP SIGNATURE-----

    

- 漏洞信息

21021
Apache Struts Error Message XSS
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

Struts contains a flaw that allows a remote cross site scripting attack. This flaw exists because the application does not validate user input when returning with an error page. This could allow a user to create a specially crafted URL that would execute arbitrary code in a user's browser within the trust relationship between the browser and the server, leading to a loss of integrity.

- 时间线

2005-11-21 Unknow
2005-11-21 Unknow

- 解决方案

Upgrade to version 1.2.8 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

- 漏洞信息

Apache Struts Error Response Cross-Site Scripting Vulnerability
Input Validation Error 15512
Yes No
2005-11-21 12:00:00 2007-01-02 07:26:00
Irene Abezgauz is credited with the discovery of this vulnerability.

- 受影响的程序版本

Apache Software Foundation Struts 1.2.7
+ RedHat Application Server AS 3
+ RedHat Application Server ES 3
+ RedHat Application Server WS 3
ScriptSolutions PerlDiver 2.32
Apache Software Foundation Struts 1.2.8

- 不受影响的程序版本

ScriptSolutions PerlDiver 2.32
Apache Software Foundation Struts 1.2.8

- 漏洞讨论

Struts is prone to a cross-site scripting vulnerability because the application fails to properly sanitize user-supplied input.

An attacker may leverage this issue to have arbitrary script code execute in the browser of an unsuspecting user in the context of the affected site. This may help the attacker steal cookie-based authentication credentials and launch other attacks.

- 漏洞利用

No exploit is required.

The following proof-of-concept URI is available:

http://www.example.com/struts-virtdir/<script>alert('test')</script>.do

- 解决方案

Red Hat has released advisory RHSA-2006:0157-01 along with fixes to address this issue for Red Hat Application Server 3. Please see the referenced advisory for more information.

The vendor has addressed this issue in version 1.2.8:


Apache Software Foundation Struts 1.2.7

- 相关参考

 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站