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.


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


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.


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

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


Risk Factor: Low

Score: 2.2


Risk Factor: Medium

Base Score: 4.3

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


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