what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Related Posts WordPress Plugin Cross Site Scripting

Related Posts WordPress Plugin Cross Site Scripting
Posted Mar 18, 2011
Authored by Rodrigo Rubira Branco

The Related Posts WordPress plugin suffers from a cross site scripting vulnerability.

tags | advisory, xss
advisories | CVE-2011-0760
SHA-256 | d488164a8603b819908f4998ecd1a942907c98bd27482847a44773121f115473

Related Posts WordPress Plugin Cross Site Scripting

Change Mirror Download
Check Point Software Technologies - Vulnerability Discovery Team (VDT)
http://www.checkpoint.com/defense/

Related Posts WordPress Plugin Cross Site Scripting Vulnerability
CVE-2011-0760


INTRODUCTION

The WordPress Related Posts Plugin (http://WordPress.org/extend/plugins/wp-related-posts/) shows the posts related to others posts.

This advisory describes multiple Stored Cross Site Scripting (XSS) vulnerabilities and one Cross Site Request Forgery (CSRF) vulnerability on the
plugin. As a result, an attacker can gain elevated access privileges to sensitive page content, session cookies, and a variety of other information
maintained by the browser on behalf of the WordPress administrator user. Furthermore, the attacker can perform actions with administrative powers.

This problem was confirmed in the latest version of the plugin, other versions maybe also affected.

CVSS Scoring System

The CVSS score is: 6.4
Base Score: 6.7
Temporal Score: 6.4
We used the following values to calculate the scores:
Base score is: AV:N/AC:L/Au:N/C:C/I:C/A:N
Temporal score is: E:F/RL:U/RC:C


DETAILS

The plugin's configuration page is vulnerable to Stored Cross Site Scripting. The three fields wp_relatedposts_ title, wp_relatedposts_num and
wp_relatedposts_type are received through POST or GET and included on the response page with little sanitization. The vulnerable code is shown next:

158: <tr valign="top">
159: <th scope="row">Title:</th>
160: <td><input type="text" name="wp_relatedposts_title" value="<?=$options['
title']?>"></td>
161: </tr>
162: <tr valign="top">
163: <th scope="row">Number posts:</th>
164: <td><input type="text" name="wp_relatedposts_num" value="<?=$options['
count']?>"></td>
165: </tr>
166: <tr valign="top">
167: <th scope="row">Related on:</th>
168: <td>
169: <select name="wp_relatedposts_type">
170: <option selected value="<?=$options['type']?>"><?=$options['type']?></option>
171: <option value="Tags">Tags</option>
172: <option value="Category">Category</option>
173: </select>
174: </td>
---

Another vulnerable piece of code is the one which prints the related posts list. The title (received through the parameter wp_relatedposts_title is
included with little sanitization into suchs lists. The vulnerable code is shown next:

---
79: $relatedpost.= '<br><br><br><h3>' . $options['title'] . '</h3><ul>';
(...)
120: $relatedpost.= '<br><br><br><h3>' . $options['title'] . '</h3><ul>';
---

These vulnerabilities allow an attacker to insert HTML/JavaScript commands to be interpreted in the session of an authenticated administrator user.

Since the plugin's configuration page is not protected against Cross Site Request Forgery, the exploitation permits the attacker to inject
configuration values.

Proof of concept exploitation code is available to interested parties.



CREDITS

This vulnerability has been brought to our attention by Gabriel Quadros from Conviso IT Security company (http://www.conviso.com.br) and researched
internally by Rodrigo Rubira Branco from the Check Point Vulnerability Discovery Team (VDT).



Best Regards,

Rodrigo.

--
Rodrigo Rubira Branco
Chief Security Research
Vulnerability Discovery Team (VDT)
Check Point Software Technologies

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close