Apache Jackrabbit 'q' Parameter XSS

This script is Copyright (C) 2009-2015 Tenable Network Security, Inc.


Synopsis :

The remote web server contains a Java web application that is affected
by two cross-site scripting vulnerabilities.

Description :

The remote host is running Apache Jackrabbit, an open source webapp
that implements the Java Content Repository (JCR) API.

The version of Apache Jackrabbit running on the remote host fails to
sanitize user input to the 'q' parameter of the 'search.jsp' and
'swr.jsp' pages before including it in dynamic HTML output. An
attacker can exploit these issues to inject arbitrary HTML and script
code into a user's browser to be executed within the security context
of the affected site.

See also :

https://issues.apache.org/jira/browse/JCR-1925
http://www.nessus.org/u?8112eea3
http://www.securityfocus.com/archive/1/500196/30/0/threaded

Solution :

Upgrade to Apache Jackrabbit 1.5.2 or later.

Risk factor :

Medium / CVSS Base Score : 4.3
(CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N)
CVSS Temporal Score : 3.6
(CVSS2#E:F/RL:OF/RC:C)
Public Exploit Available : true

Family: CGI abuses : XSS

Nessus Plugin ID: 35452 (apache_jackrabbit_q_xss.nasl)

Bugtraq ID: 33360

CVE ID: CVE-2009-0026