header-logo
Suggest Exploit
vendor:
Tomcat
by:
Unknown
5.5
CVSS
MEDIUM
Cross-Site Scripting
79
CWE
Product Name: Tomcat
Affected Version From: 4.0.0
Affected Version To: 6.0.10
Patch Exists: NO
Related CWE: Unknown
CPE: apache:tomcat
Metasploit:
Other Scripts:
Platforms Tested:
Unknown

Cross-Site Scripting in Apache Tomcat’s Documentation Web Application

The Apache Tomcat's documentation web application includes a sample application that is prone to multiple cross-site scripting vulnerabilities because it fails to properly sanitize user-supplied input. An attacker may leverage these issues to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks.

Mitigation:

Upgrade to a version of Apache Tomcat that has been patched to address this vulnerability. As a general best practice, input validation and sanitization should be performed on user-supplied data before using it in any context.
Source

Exploit-DB raw data:

source: https://www.securityfocus.com/bid/24058/info

Apache Tomcat's documentation web application includes a sample application that is prone to multiple cross-site scripting vulnerabilities because it fails to properly sanitize user-supplied input.

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

The following Tomcat versions are affected:

4.0.0 to 4.0.6
4.1.0 to 4.1.36
5.0.0 to 5.0.30
5.5.0 to 5.5.23
6.0.0 to 6.0.10

http://www.example.com/tomcat-docs/appdev/sample/web/hello.jsp?test=<script>alert(document.domain)</script>