Jetty CookieDump.java Sample Application Persistent XSS

medium Nessus Plugin ID 42797

Synopsis

The remote web server hosts an application that is prone to a cross- site scripting attack.

Description

The installed version of Mort Bay Jetty includes a sample web application, 'CookieDump.java', that allows for setting arbitrary cookies through user input to the 'Name' and 'Value' GET parameters to '/cookie' and in turn uses those without sanitizing them to generate dynamic HTML output.

An attacker may be able to leverage this issue to inject arbitrary HTML and script code into a user's browser to be executed within the security context of the affected site.

Solution

Upgrade to Mort Bay Jetty 7.0.0 or later as that reportedly addresses the issue.

See Also

http://www.coresecurity.com/content/jetty-persistent-xss

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

Plugin Details

Severity: Medium

ID: 42797

File Name: jetty_cookie_xss.nasl

Version: 1.8

Type: remote

Published: 11/13/2009

Updated: 1/19/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.8

CVSS v2

Risk Factor: Medium

Base Score: 4.3

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

Vulnerability Information

CPE: cpe:/a:mortbay:jetty

Exploited by Nessus: true

Patch Publication Date: 10/7/2009

Vulnerability Publication Date: 10/6/2009

Reference Information

CVE: CVE-2009-3579

CWE: 79