Tomcat Sample App cal2.jsp 'time' Parameter XSS

medium Nessus Plugin ID 35806
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

The remote web server contains a JSP application that is affected by a cross-site scripting vulnerability.

Description

The remote web server includes an example JSP application, 'cal2.jsp', that fails to sanitize user-supplied input before using it to generate dynamic content. An unauthenticated, remote attacker can exploit this issue to inject arbitrary HTML or script code into a user's browser to be executed within the security context of the affected site.

Solution

Upgrade to Apache Tomcat version 4.1.40 / 5.5.28 / 6.0.20.
Alternatively, apply the appropriate patch referenced in the vendor advisory or undeploy the Tomcat examples web application.

See Also

https://www.securityfocus.com/archive/1/501538/30/0/threaded

http://tomcat.apache.org/security-6.html

http://tomcat.apache.org/security-5.html

http://tomcat.apache.org/security-4.html

Plugin Details

Severity: Medium

ID: 35806

File Name: tomcat_sample_cal2_xss2.nasl

Version: 1.22

Type: remote

Published: 3/9/2009

Updated: 1/19/2021

Dependencies: tomcat_error_version.nasl

Risk Information

VPR

Risk Factor: Low

Score: 2.2

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Vulnerability Information

CPE: cpe:/a:apache:tomcat

Required KB Items: installed_sw/Apache Tomcat

Excluded KB Items: Settings/disable_cgi_scanning

Patch Publication Date: 3/6/2009

Reference Information

CVE: CVE-2009-0781

CWE: 79