Tomcat Sample App cal2.jsp 'time' Parameter XSS

Medium Nessus Plugin ID 35806


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.21

Type: remote

Published: 2009/03/09

Updated: 2018/11/15

Dependencies: 39446

Risk Information

Risk Factor: Medium

CVSS v2.0

Base Score: 4.3

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

CVSS v3.0

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: 2009/03/06

Reference Information

CVE: CVE-2009-0781

CWE: 79