Struts Error Message XSS

2005-11-21T09:18:02
ID OSVDB:21021
Type osvdb
Reporter Irene Abezgauz(irene.abezgauz@gmail.com)
Modified 2005-11-21T09:18:02

Description

Vulnerability Description

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.

Solution Description

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.

Short Description

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.

Manual Testing Notes

http://[target]/struts-virtdir/<script>alert('test')</script>.do

References:

Security Tracker: 1015257 Secunia Advisory ID:18341 Secunia Advisory ID:17677 RedHat RHSA: RHSA-2006:0157 Other Advisory URL: http://www.hacktics.com/AdvStrutsNov05.html Mail List Post: http://archives.neohapsis.com/archives/fulldisclosure/2005-11/0660.html CVE-2005-3745