WordPress wp-includes/feed.php self_link() Function Host Header RSS Feed XSS

This script is Copyright (C) 2008-2011 Tenable Network Security, Inc.


Synopsis :

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

Description :

The version of WordPress installed on the remote host fails to
completely sanitize input to the the 'Host' request header before
using it in the 'self_link()' function in 'wp-includes/feed.php' to
generate dynamic HTML output. An attacker may be able to leverage
this 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 :

http://www.securityfocus.com/archive/1/498652/30/0/threaded
http://wordpress.org/development/2008/11/wordpress-265/

Solution :

Upgrade to WordPress version 2.6.5 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: 34994 ()

Bugtraq ID: 32476

CVE ID: CVE-2008-5278