Apache Struts Error Response Cross-Site Scripting Vulnerability

BID:15512

Info

Apache Struts Error Response Cross-Site Scripting Vulnerability

Bugtraq ID: 15512
Class: Input Validation Error
CVE: CVE-2005-3745
Remote: Yes
Local: No
Published: Nov 21 2005 12:00AM
Updated: Jan 02 2007 07:26PM
Credit: Irene Abezgauz is credited with the discovery of this vulnerability.
Vulnerable: Apache Struts 1.2.7
+ Redhat Application Server AS 3
+ Redhat Application Server ES 3
+ Redhat Application Server WS 3
Not Vulnerable: ScriptSolutions PerlDiver 2.32
Apache Struts 1.2.8

Discussion

Apache Struts Error Response Cross-Site Scripting Vulnerability

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.

Exploit / POC

Apache Struts Error Response Cross-Site Scripting Vulnerability

No exploit is required.

The following proof-of-concept URI is available:

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

Solution / Fix

Apache Struts Error Response Cross-Site Scripting Vulnerability

Solution:
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 Struts 1.2.7

References

Apache Struts Error Response Cross-Site Scripting Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report