###########################

# Wordpress 3.3.1+dfsg-1 Media Library Persistent XSS

###########################

Title: Persistent XSS in Wordpress 3.3.1+dfsg-1 (Packaged with Ubuntu 12.04.4)

Author: Larry W. Cashdollar, @_larry0

Date: 2/1/2014

Vendor: Not notified yet.

Download: http://wordpress.org/download

Versions Impacted: 3.3.1 -> 3.8.1 tested 2/2/2014.

Persistent XSS injection description field in Media Library.

Notes:
Line 235 of upload.php renders the 'View' option:

235 <?php $wp_list_table->display(); ?>

Trace wp_list_table->display back to find unsantized html out.

Lines 100-102 of wp-includes/canonical.php call functions to render vulnerable page:
100 if ( is_attachment() && !empty($_GET['attachment_id']) && ! $redirect_url ) {
101 if ( $redirect_url = get_attachment_link(get_query_var('attachment_id')) )
102 $redirect['query'] = remove_query_arg('attachment_id', $redirect['query']);

CVE: Please assign.

Persistent XSS injection description field in Media Library.

Description: A persistent cross site scripting vulnerability exists in the latest version of WordPress in the Media
Library. It appears the Description field is not properly sanitized when viewed. The malicious code is stored when the
description field is saved.

Full Advisory: http://vapid.dhs.org/advisories/wordpress/XSS/xss_wordpress.html

###########################

# Iranian Exploit DataBase = http://IeDb.Ir [2014-02-03]

###########################